@crewx/sdk 0.9.0-rc.17 → 0.9.0-rc.170

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 (343) 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 +11 -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 +59 -6
  12. package/dist/agent/agent-list-view.d.ts +19 -0
  13. package/dist/agent-interceptor/chain.d.ts +25 -0
  14. package/dist/agent-interceptor/index.d.ts +6 -0
  15. package/dist/agent-interceptor/model-runner.d.ts +19 -0
  16. package/dist/agent-interceptor/program-runner.d.ts +13 -0
  17. package/dist/agent-interceptor/protocol.d.ts +68 -0
  18. package/dist/agent-interceptor/run-stop.d.ts +3 -0
  19. package/dist/agent-interceptor/schema.d.ts +267 -0
  20. package/dist/agent-interceptor/types.d.ts +88 -0
  21. package/dist/app/app.d.ts +167 -0
  22. package/dist/app/backend-env.d.ts +3 -0
  23. package/dist/app/content-media-types.d.ts +2 -0
  24. package/dist/app/context.d.ts +2 -0
  25. package/dist/app/entry.d.ts +9 -0
  26. package/dist/app/frame.d.ts +55 -0
  27. package/dist/app/index.d.ts +18 -0
  28. package/dist/app/index.js +12 -0
  29. package/dist/app/job-bridge.child.d.ts +1 -0
  30. package/dist/app/job-bridge.d.ts +67 -0
  31. package/dist/app/job-bridge.drain.child.d.ts +1 -0
  32. package/dist/app/job-bridge.example.d.ts +11 -0
  33. package/dist/app/job-contract.d.ts +40 -0
  34. package/dist/app/job-wire.d.ts +149 -0
  35. package/dist/app/protocol.d.ts +9 -0
  36. package/dist/app/runtime.d.ts +23 -0
  37. package/dist/app/schedule-contract.d.ts +59 -0
  38. package/dist/app/tool-mode.d.ts +3 -0
  39. package/dist/app-artifact-policy/check.d.ts +2 -0
  40. package/dist/app-artifact-policy/contract.d.ts +54 -0
  41. package/dist/app-artifact-policy/helper.d.ts +15 -0
  42. package/dist/app-artifact-policy/index.d.ts +3 -0
  43. package/dist/app-artifact-policy/index.js +18 -0
  44. package/dist/app-artifact-policy/paths.d.ts +24 -0
  45. package/dist/app-artifact-policy/scan.d.ts +47 -0
  46. package/dist/boxing/box.types.d.ts +4 -0
  47. package/dist/config/canonicalize-agent-options.d.ts +18 -0
  48. package/dist/config/default-agent-models.d.ts +11 -0
  49. package/dist/config/global-settings.d.ts +33 -0
  50. package/dist/config/migrate-grok-mode.d.ts +6 -0
  51. package/dist/config/model-compat.d.ts +31 -0
  52. package/dist/config/models.generated.d.ts +37 -0
  53. package/dist/config/models.remote.d.ts +1 -0
  54. package/dist/config/overdrive.d.ts +7 -0
  55. package/dist/config/pricing.d.ts +6 -3
  56. package/dist/config/pricing.generated.d.ts +4 -0
  57. package/dist/config/pricing.types.d.ts +4 -0
  58. package/dist/config/timeout.config.d.ts +4 -0
  59. package/dist/config/wi-boards.d.ts +19 -0
  60. package/dist/context-budget/continuity.d.ts +63 -0
  61. package/dist/context-budget/index.d.ts +142 -0
  62. package/dist/conversation/index.d.ts +1 -1
  63. package/dist/conversation/sqlite-provider.d.ts +6 -3
  64. package/dist/conversation/to-template-messages.d.ts +9 -0
  65. package/dist/conversation/types.d.ts +58 -1
  66. package/dist/desktop/command-runner.d.ts +4 -0
  67. package/dist/desktop/default-adapters.d.ts +4 -0
  68. package/dist/desktop/global-install.d.ts +19 -0
  69. package/dist/desktop/index.d.ts +3 -0
  70. package/dist/desktop/index.js +3 -0
  71. package/dist/desktop/install.d.ts +5 -0
  72. package/dist/desktop/lnk.d.ts +22 -0
  73. package/dist/desktop/manifest.d.ts +21 -0
  74. package/dist/desktop/types.d.ts +67 -0
  75. package/dist/desktop/version.d.ts +1 -0
  76. package/dist/desktop/windows-paths.d.ts +21 -0
  77. package/dist/desktop/wrapper.d.ts +18 -0
  78. package/dist/esm/account/index.js +2 -0
  79. package/dist/esm/app/index.js +12 -0
  80. package/dist/esm/app-artifact-policy/index.js +18 -0
  81. package/dist/esm/desktop/index.js +3 -0
  82. package/dist/esm/index.js +1175 -224
  83. package/dist/esm/node/index.js +2 -0
  84. package/dist/esm/plugins/index.js +527 -214
  85. package/dist/esm/process/index.js +1 -0
  86. package/dist/esm/publish/index.js +2 -0
  87. package/dist/esm/repository/index.js +648 -211
  88. package/dist/esm/skills/index.js +2 -0
  89. package/dist/esm/testing/index.js +1 -1
  90. package/dist/events/types.d.ts +28 -0
  91. package/dist/facade/Crewx.d.ts +70 -5
  92. package/dist/facade/task-ticket.d.ts +14 -0
  93. package/dist/highlight/thread-highlight-prompt.d.ts +2 -0
  94. package/dist/highlight/thread-highlighter.d.ts +326 -0
  95. package/dist/index.browser.d.ts +25 -1
  96. package/dist/index.browser.js +6 -2
  97. package/dist/index.d.ts +157 -17
  98. package/dist/index.js +1175 -224
  99. package/dist/internal/console-decoder.d.ts +38 -0
  100. package/dist/internal/windows-spawn.d.ts +10 -0
  101. package/dist/layout/types.d.ts +18 -1
  102. package/dist/lifecycle/process-lease.d.ts +80 -0
  103. package/dist/lifecycle/process-owner.d.ts +20 -0
  104. package/dist/lifecycle/task-heartbeat.d.ts +41 -0
  105. package/dist/lifecycle/task-stop.d.ts +82 -0
  106. package/dist/lifecycle/update-admission.d.ts +45 -0
  107. package/dist/local-server/base-url.d.ts +18 -0
  108. package/dist/local-server/index.d.ts +8 -0
  109. package/dist/local-server/opencode.d.ts +8 -0
  110. package/dist/local-server/probe.d.ts +3 -0
  111. package/dist/local-server/runtime.d.ts +26 -0
  112. package/dist/local-server/types.d.ts +43 -0
  113. package/dist/mcp-app/agent-access.d.ts +26 -0
  114. package/dist/mcp-app/app-handoff.d.ts +109 -0
  115. package/dist/mcp-app/app-icon-read.d.ts +7 -0
  116. package/dist/mcp-app/app-job-bridge.d.ts +30 -0
  117. package/dist/mcp-app/app-job-bridge.example.d.ts +36 -0
  118. package/dist/mcp-app/app-job.d.ts +168 -0
  119. package/dist/mcp-app/app-schedule.d.ts +85 -0
  120. package/dist/mcp-app/apps-context.d.ts +32 -0
  121. package/dist/mcp-app/bundle-provenance.d.ts +3 -0
  122. package/dist/mcp-app/candidate-registration.d.ts +4 -0
  123. package/dist/mcp-app/card-handler.d.ts +7 -0
  124. package/dist/mcp-app/catalog.d.ts +7 -0
  125. package/dist/mcp-app/content-channel.d.ts +86 -0
  126. package/dist/mcp-app/content-declarations.d.ts +31 -0
  127. package/dist/mcp-app/dev-checks.d.ts +31 -0
  128. package/dist/mcp-app/diagnostic-reason.d.ts +3 -0
  129. package/dist/mcp-app/discovery.d.ts +164 -0
  130. package/dist/mcp-app/errors.d.ts +7 -0
  131. package/dist/mcp-app/index.d.ts +45 -0
  132. package/dist/mcp-app/installed-app-ref.d.ts +25 -0
  133. package/dist/mcp-app/model-context.d.ts +29 -0
  134. package/dist/mcp-app/node-app-discovery-fs.d.ts +23 -0
  135. package/dist/mcp-app/product-bundle-assets.d.ts +27 -0
  136. package/dist/mcp-app/product-bundle-loader.d.ts +53 -0
  137. package/dist/mcp-app/projection.d.ts +14 -0
  138. package/dist/mcp-app/prompt-cards.d.ts +28 -0
  139. package/dist/mcp-app/registry.d.ts +28 -0
  140. package/dist/mcp-app/skill-backend.d.ts +141 -0
  141. package/dist/mcp-app/state-set.d.ts +9 -0
  142. package/dist/mcp-app/types.d.ts +488 -0
  143. package/dist/mcp-app/workspace-app-assets.d.ts +42 -0
  144. package/dist/mcp-app/workspace-app-scan-cache.d.ts +27 -0
  145. package/dist/mcp-app/workspace-snapshot.d.ts +75 -0
  146. package/dist/migrations/0011_far_black_tarantula.sql +1 -0
  147. package/dist/migrations/0012_blue_turbo.sql +23 -0
  148. package/dist/migrations/0013_hesitant_adam_destine.sql +15 -0
  149. package/dist/migrations/0014_organic_mongu.sql +73 -0
  150. package/dist/migrations/0015_panoramic_gorilla_man.sql +71 -0
  151. package/dist/migrations/0016_fuzzy_hemingway.sql +14 -0
  152. package/dist/migrations/0017_project_stage_sdk_migration.sql +29 -0
  153. package/dist/migrations/0018_bored_jackal.sql +33 -0
  154. package/dist/migrations/0019_backfill_task_thread_ids.sql +74 -0
  155. package/dist/migrations/0020_useful_iron_lad.sql +55 -0
  156. package/dist/migrations/0021_dashing_peter_quill.sql +51 -0
  157. package/dist/migrations/0022_wandering_bucky.sql +1 -0
  158. package/dist/migrations/0023_red_payback.sql +1 -0
  159. package/dist/migrations/0024_storage_metadata.sql +262 -0
  160. package/dist/migrations/0025_task_heartbeat.sql +8 -0
  161. package/dist/migrations/0025_thread_app_instance_ledger.sql +2 -0
  162. package/dist/migrations/0026_mcp_action_source.sql +47 -0
  163. package/dist/migrations/0027_task_stop_scope_cleanup.sql +5 -0
  164. package/dist/migrations/0027_ui_instance_active_unique.sql +2 -0
  165. package/dist/migrations/0029_nice_rhino.sql +1 -0
  166. package/dist/migrations/0031_petite_arclight.sql +6 -0
  167. package/dist/migrations/0032_ui_instance_opened_by.sql +1 -0
  168. package/dist/migrations/0033_thread_creator_boundary_guard.sql +38 -0
  169. package/dist/migrations/0034_keen_fallen_one.sql +36 -0
  170. package/dist/migrations/0035_request_log_daily.sql +11 -0
  171. package/dist/migrations/0036_ui_definition_archive.sql +8 -0
  172. package/dist/migrations/0037_ui_instance_agent_open_request.sql +1 -0
  173. package/dist/migrations/0038_task_rating.sql +3 -0
  174. package/dist/migrations/0039_aspiring_purifiers.sql +9 -0
  175. package/dist/migrations/0040_task_provider_inputs.sql +53 -0
  176. package/dist/migrations/0041_tranquil_vivisector.sql +54 -0
  177. package/dist/migrations/meta/0011_snapshot.json +1342 -0
  178. package/dist/migrations/meta/0012_snapshot.json +1494 -0
  179. package/dist/migrations/meta/0013_snapshot.json +1592 -0
  180. package/dist/migrations/meta/0014_snapshot.json +1975 -0
  181. package/dist/migrations/meta/0015_snapshot.json +2315 -0
  182. package/dist/migrations/meta/0016_snapshot.json +2419 -0
  183. package/dist/migrations/meta/0017_snapshot.json +2419 -0
  184. package/dist/migrations/meta/0018_snapshot.json +2570 -0
  185. package/dist/migrations/meta/0020_snapshot.json +2895 -0
  186. package/dist/migrations/meta/0021_snapshot.json +3031 -0
  187. package/dist/migrations/meta/0022_snapshot.json +3039 -0
  188. package/dist/migrations/meta/0023_snapshot.json +3047 -0
  189. package/dist/migrations/meta/0029_snapshot.json +3206 -0
  190. package/dist/migrations/meta/0031_snapshot.json +3251 -0
  191. package/dist/migrations/meta/0034_snapshot.json +3473 -0
  192. package/dist/migrations/meta/0035_snapshot.json +3547 -0
  193. package/dist/migrations/meta/0036_snapshot.json +3591 -0
  194. package/dist/migrations/meta/0037_snapshot.json +3598 -0
  195. package/dist/migrations/meta/0038_snapshot.json +3626 -0
  196. package/dist/migrations/meta/0039_snapshot.json +3684 -0
  197. package/dist/migrations/meta/0040_snapshot.json +3759 -0
  198. package/dist/migrations/meta/0041_snapshot.json +4156 -0
  199. package/dist/migrations/meta/_journal.json +217 -0
  200. package/dist/node/index.d.ts +1 -0
  201. package/dist/node/index.js +2 -0
  202. package/dist/paths.d.ts +1 -0
  203. package/dist/plugin/types.d.ts +1 -0
  204. package/dist/plugins/index.d.ts +1 -1
  205. package/dist/plugins/index.js +527 -214
  206. package/dist/plugins/sqlite-tracing.d.ts +46 -0
  207. package/dist/process/index.d.ts +2 -0
  208. package/dist/process/index.js +1 -0
  209. package/dist/process/process-control.d.ts +60 -0
  210. package/dist/prompt/tag-names.d.ts +22 -0
  211. package/dist/provider/acp/connection.d.ts +6 -0
  212. package/dist/provider/acp/meta.d.ts +11 -0
  213. package/dist/provider/bridge.d.ts +12 -2
  214. package/dist/provider/classify-task-error.d.ts +2 -0
  215. package/dist/provider/claude-agent-env.d.ts +1 -0
  216. package/dist/provider/cli/adapter.types.d.ts +23 -2
  217. package/dist/provider/cli/adapters/agent-call.util.d.ts +1 -1
  218. package/dist/provider/cli/adapters/cli-knob.util.d.ts +7 -0
  219. package/dist/provider/cli/adapters/codex-item.d.ts +1 -0
  220. package/dist/provider/cli/adapters/event-timestamp.util.d.ts +1 -0
  221. package/dist/provider/cli/adapters/grok.d.ts +2 -0
  222. package/dist/provider/cli/adapters/index.d.ts +5 -0
  223. package/dist/provider/cli/index.d.ts +3 -2
  224. package/dist/provider/cli/meta.d.ts +5 -0
  225. package/dist/provider/cli/protocol-envelope.d.ts +3 -0
  226. package/dist/provider/errors.d.ts +5 -1
  227. package/dist/provider/idle-watchdog.d.ts +19 -0
  228. package/dist/provider/models.d.ts +17 -12
  229. package/dist/provider/order.d.ts +1 -1
  230. package/dist/provider/parse-usage.d.ts +6 -0
  231. package/dist/provider/provider-selection.d.ts +8 -0
  232. package/dist/provider/redact-technical-message.d.ts +1 -0
  233. package/dist/provider/task-error.types.d.ts +17 -0
  234. package/dist/provider-account/accounts.d.ts +15 -0
  235. package/dist/provider-account/index.d.ts +5 -0
  236. package/dist/provider-account/registry.d.ts +30 -0
  237. package/dist/provider-account/types.d.ts +40 -0
  238. package/dist/publish/constants.d.ts +6 -0
  239. package/dist/publish/errors.d.ts +7 -0
  240. package/dist/publish/index.d.ts +55 -0
  241. package/dist/publish/index.js +2 -0
  242. package/dist/publish/manifest.d.ts +47 -0
  243. package/dist/publish/marketplace-api.constants.d.ts +1 -0
  244. package/dist/publish/pack.d.ts +6 -0
  245. package/dist/publish/scan.d.ts +10 -0
  246. package/dist/publish/secrets.d.ts +6 -0
  247. package/dist/publish/upload.d.ts +19 -0
  248. package/dist/remote/execution-profile.d.ts +9 -0
  249. package/dist/remote/index.d.ts +1 -0
  250. package/dist/remote/types.d.ts +28 -0
  251. package/dist/repository/agent-send-history.repository.d.ts +23 -0
  252. package/dist/repository/agent-suggestion.repository.d.ts +34 -0
  253. package/dist/repository/base-sqlite-repository.d.ts +1 -0
  254. package/dist/repository/common-code.repository.d.ts +45 -0
  255. package/dist/repository/db.d.ts +12 -1
  256. package/dist/repository/index.d.ts +53 -6
  257. package/dist/repository/index.js +648 -211
  258. package/dist/repository/logs-db.d.ts +12 -0
  259. package/dist/repository/notification.repository.d.ts +58 -0
  260. package/dist/repository/project.repository.d.ts +90 -0
  261. package/dist/repository/public-task-answer.d.ts +24 -0
  262. package/dist/repository/request-log-mover.d.ts +70 -0
  263. package/dist/repository/request-log.repository.d.ts +7 -3
  264. package/dist/repository/sidebar-tab.repository.d.ts +86 -0
  265. package/dist/repository/storage-metadata.repository.d.ts +64 -0
  266. package/dist/repository/task-log-migration.d.ts +74 -0
  267. package/dist/repository/task-log.repository.d.ts +44 -0
  268. package/dist/repository/task-status.d.ts +21 -0
  269. package/dist/repository/task.repository.d.ts +307 -8
  270. package/dist/repository/thread-history.repository.d.ts +193 -0
  271. package/dist/repository/thread-origin-verdict.d.ts +27 -0
  272. package/dist/repository/thread-title.types.d.ts +29 -0
  273. package/dist/repository/thread.repository.d.ts +134 -5
  274. package/dist/repository/usage-backfill.d.ts +62 -0
  275. package/dist/repository/usage-from-logs.d.ts +21 -0
  276. package/dist/repository/workspace.repository.d.ts +3 -0
  277. package/dist/schema/agent-send-history.d.ts +85 -0
  278. package/dist/schema/agent-suggestions.d.ts +199 -0
  279. package/dist/schema/common-codes.d.ts +216 -0
  280. package/dist/schema/index.d.ts +16 -0
  281. package/dist/schema/notifications.d.ts +303 -0
  282. package/dist/schema/projects.d.ts +610 -0
  283. package/dist/schema/request-log-daily.d.ts +151 -0
  284. package/dist/schema/sidebar-tabs.d.ts +466 -0
  285. package/dist/schema/storage-metadata.d.ts +181 -0
  286. package/dist/schema/task-log-events.d.ts +119 -0
  287. package/dist/schema/task-provider-inputs.d.ts +100 -0
  288. package/dist/schema/tasks.d.ts +1058 -1
  289. package/dist/schema/thread-creator-unverified.d.ts +45 -0
  290. package/dist/schema/thread-history.d.ts +734 -0
  291. package/dist/schema/threads.d.ts +59 -0
  292. package/dist/schema/ui-action-receipts.d.ts +358 -0
  293. package/dist/schema/ui-definition-archive.d.ts +63 -0
  294. package/dist/schema/ui-instance-repins.d.ts +222 -0
  295. package/dist/schema/ui-instances.d.ts +324 -0
  296. package/dist/schema/workspaces.d.ts +17 -0
  297. package/dist/skills/index.d.ts +15 -0
  298. package/dist/skills/index.js +2 -0
  299. package/dist/skills/types.d.ts +18 -0
  300. package/dist/task-log/anchor-child-tasks.d.ts +7 -0
  301. package/dist/task-log/delegation-trailer.d.ts +34 -0
  302. package/dist/template/engine.d.ts +2 -2
  303. package/dist/template/helpers/exec.browser.d.ts +4 -3
  304. package/dist/template/helpers/exec.d.ts +4 -3
  305. package/dist/template/helpers/format-conversation.d.ts +1 -0
  306. package/dist/template/types.d.ts +20 -0
  307. package/dist/testing/index.js +1 -1
  308. package/dist/types/index.d.ts +1611 -3
  309. package/dist/types/task-log.types.d.ts +6 -1
  310. package/dist/ui-card/index.d.ts +2 -0
  311. package/dist/ui-card/legacy-card-parser.d.ts +11 -0
  312. package/dist/ui-instance/definition.d.ts +6 -0
  313. package/dist/ui-instance/errors.d.ts +18 -0
  314. package/dist/ui-instance/index.d.ts +11 -0
  315. package/dist/ui-instance/json.d.ts +19 -0
  316. package/dist/ui-instance/lineage.d.ts +24 -0
  317. package/dist/ui-instance/runtime.d.ts +19 -0
  318. package/dist/ui-instance/store.d.ts +213 -0
  319. package/dist/ui-instance/types.d.ts +343 -0
  320. package/dist/ui-plugin/app-icon.d.ts +50 -0
  321. package/dist/ui-plugin/app-manifest.d.ts +64 -0
  322. package/dist/ui-plugin/csp.d.ts +28 -0
  323. package/dist/ui-plugin/index.d.ts +8 -0
  324. package/dist/ui-plugin/limits.d.ts +27 -0
  325. package/dist/ui-plugin/manifest.d.ts +3 -0
  326. package/dist/ui-plugin/types.d.ts +207 -0
  327. package/dist/ui-plugin/validator.d.ts +18 -0
  328. package/dist/utils/crewx-executable.d.ts +76 -0
  329. package/dist/utils/crewx-home.d.ts +1 -0
  330. package/dist/utils/env-defaults.d.ts +3 -0
  331. package/dist/utils/id.d.ts +1 -1
  332. package/dist/utils/local-identity.d.ts +2 -0
  333. package/dist/utils/runner-env.d.ts +3 -0
  334. package/dist/utils/timestamp.d.ts +1 -0
  335. package/dist/utils/workspace.d.ts +1 -0
  336. package/dist/wi/create.d.ts +48 -0
  337. package/dist/wi/select.d.ts +20 -0
  338. package/package.json +63 -3
  339. package/templates/agents/default.yaml +303 -128
  340. package/templates/documents/crewx-manual.md +138 -138
  341. package/templates/documents/crewx-quick-guide.md +8 -7
  342. package/templates/workflows/wi-default-flow.yaml +65 -0
  343. package/templates/workflows/wi-plan-flow.yaml +140 -0
@@ -1,13 +1,21 @@
1
+ import type { AgentListSnapshot } from '../agent/agent-list-view';
2
+ import { type InterceptorLaneRun, type InterceptorPhase } from '../agent-interceptor';
1
3
  import { TypedEventEmitter } from '../events/TypedEventEmitter';
2
4
  import type { CrewxPlugin } from '../plugin';
3
5
  import type { IFsAdapter } from '../platform/IFsAdapter';
4
6
  import type { ChannelAdapterRegistration } from '../adapter/types';
5
- import type { CrewxProjectConfig, AgentConfig, CrewxOptions, QueryOptions, QueryResult, ExecuteOptions, ExecuteResult } from '../types';
6
- import type { TemplateContext } from '../template/types';
7
- import type { CustomLayoutDefinition } from '../layout/types';
8
- import type { TemplateMessage } from '../conversation/types';
7
+ import type { CrewxProjectConfig, AgentConfig, CrewxOptions, QueryOptions, QueryResult, ExecuteOptions, ExecuteResult, CanResumeSessionParams, CanResumeSessionResult } from '../types';
8
+ import type { PromptListResolver, TemplateContext } from '../template/types';
9
+ import type { CustomLayoutDefinition, LayoutCapabilities } from '../layout/types';
10
+ import type { ConversationThreadState, SemanticContinuityContext, TemplateMessage } from '../conversation/types';
9
11
  import type { HandlerOptions, CrewxHandler } from '../server/handler';
10
12
  import type { RemoteProviderConfig } from '../remote/types.js';
13
+ import type { McpAppLayoutSnapshot, McpAppStateDescriptor } from '../mcp-app/types.js';
14
+ import type { McpAppModelContext } from '../mcp-app/model-context.js';
15
+ import type { CrewxAppCatalogOptions, CrewxAppCatalogResult } from '../mcp-app/types.js';
16
+ import type { McpAppsContext } from '../mcp-app/apps-context.js';
17
+ import type { UiRuntimeFacade, UiRuntimeOptions } from '../ui-instance/types.js';
18
+ import type { CrewxEventName, CrewxEventPayload } from '../events/types';
11
19
  export interface ToolDefinition {
12
20
  name: string;
13
21
  description: string;
@@ -19,6 +27,7 @@ export type LayoutSpec = string | {
19
27
  props?: Record<string, any>;
20
28
  } | {
21
29
  template: string;
30
+ capabilities?: LayoutCapabilities;
22
31
  };
23
32
  export interface SkillEntry {
24
33
  metadata: {
@@ -28,6 +37,7 @@ export interface SkillEntry {
28
37
  };
29
38
  filePath: string;
30
39
  }
40
+ export declare function loadAgentSkills(projectRoot?: string): SkillEntry[];
31
41
  export interface RenderAgentPromptOptions {
32
42
  layout?: LayoutSpec;
33
43
  session?: {
@@ -39,6 +49,12 @@ export interface RenderAgentPromptOptions {
39
49
  vars?: Record<string, unknown>;
40
50
  skills?: SkillEntry[];
41
51
  messages?: TemplateMessage[];
52
+ semanticContinuity?: SemanticContinuityContext;
53
+ threadState?: ConversationThreadState;
54
+ mcpAppProjections?: readonly McpAppStateDescriptor[];
55
+ mcpAppModelContext?: McpAppModelContext;
56
+ appLayoutSnapshot?: McpAppLayoutSnapshot;
57
+ mcpAppAvailable?: McpAppsContext['available'];
42
58
  threadId?: string;
43
59
  }
44
60
  export declare class Crewx extends TypedEventEmitter {
@@ -56,22 +72,34 @@ export declare class Crewx extends TypedEventEmitter {
56
72
  private readonly _activeAdapters;
57
73
  private readonly _pendingThreads;
58
74
  private readonly _activeTasks;
75
+ private readonly _activeInterceptorPids;
76
+ private readonly _interceptorRunTaskIds;
59
77
  private readonly _remoteFactory?;
78
+ private readonly _taskTicketIssuer?;
60
79
  private readonly _remoteTargets;
80
+ private readonly _detachedRemoteTargets;
61
81
  private readonly _additionalArgsProvider?;
82
+ private readonly _onRateLimitObserved?;
83
+ private _globalSettings?;
84
+ private readonly _callerIdentityOverrides;
62
85
  private constructor();
63
86
  private resolveFileRemoteTarget;
87
+ private _readRemoteTargetStat;
64
88
  private static loadBuiltInConfig;
65
89
  private static mergeCrewxConfig;
66
90
  static loadYaml(path: string | undefined, options?: CrewxOptions, fsAdapter?: IFsAdapter): Promise<Crewx>;
67
- static fromConfig(config: CrewxProjectConfig, options?: CrewxOptions, projectRoot?: string, fsAdapter?: IFsAdapter): Promise<Crewx>;
91
+ static fromConfig(config: CrewxProjectConfig, options?: Omit<CrewxOptions, 'taskTicketIssuer'>, projectRoot?: string, fsAdapter?: IFsAdapter): Promise<Crewx>;
68
92
  get agents(): ReadonlyMap<string, AgentConfig>;
69
93
  get config(): CrewxProjectConfig | undefined;
70
94
  get plugins(): readonly CrewxPlugin[];
71
95
  get tools(): ReadonlyMap<string, ToolDefinition>;
96
+ listApps(options?: CrewxAppCatalogOptions): Promise<CrewxAppCatalogResult>;
97
+ listWorkspaceApps(options?: CrewxAppCatalogOptions): Promise<CrewxAppCatalogResult>;
72
98
  get workspaceId(): string;
99
+ createUiRuntime(options: UiRuntimeOptions): UiRuntimeFacade;
73
100
  get workspaceName(): string;
74
101
  getAgent(agentRef: string): AgentConfig | undefined;
102
+ canResumeSession(agentRef: string, params: CanResumeSessionParams): Promise<CanResumeSessionResult>;
75
103
  getRemoteProviderConfig(providerId: string): RemoteProviderConfig | undefined;
76
104
  private computeTaskLogPath;
77
105
  registerTool(name: string, definition: Omit<ToolDefinition, 'name'>): void;
@@ -90,6 +118,14 @@ export declare class Crewx extends TypedEventEmitter {
90
118
  team?: string;
91
119
  provider?: string;
92
120
  }): AgentConfig[];
121
+ private readonly _promptListProviders;
122
+ registerPromptListProvider(resolver: PromptListResolver): void;
123
+ static readAgentListSnapshot(options: {
124
+ cwd: string;
125
+ env: Record<string, string>;
126
+ configPath?: string;
127
+ }): AgentListSnapshot;
128
+ static createAgentListPromptResolver(configPath?: string): PromptListResolver;
93
129
  renderAgentPrompt(agentId: string): string;
94
130
  renderPrompt(template: string, context?: TemplateContext): Promise<string>;
95
131
  registerLayout(name: string, template: string | CustomLayoutDefinition): void;
@@ -98,16 +134,45 @@ export declare class Crewx extends TypedEventEmitter {
98
134
  private _resolveLayoutSpec;
99
135
  private _extractLayoutId;
100
136
  private _extractLayoutProps;
137
+ private _resolveLayoutContinuityCapability;
101
138
  private _getConversationProvider;
139
+ private _filterActivityLogByTaskIds;
102
140
  private _fetchHistoryMessages;
141
+ private _resolveFreshProvider;
142
+ private _resolveLocalServerRuntime;
143
+ private _readInputBudgetPercent;
144
+ private _resolveBudgetModel;
145
+ private _resolveContextMode;
146
+ private _buildInstructionOnlyResumeManifest;
147
+ private _buildInstructionOnlyContinuity;
148
+ private _prepareInstructionOnlyResumeWithBudget;
149
+ private _activityLogEntryCounts;
150
+ private _buildUnresolvedContextBudgetManifest;
151
+ private _buildResolvedContextBudgetManifest;
152
+ private _renderFreshPromptVariant;
153
+ private _prepareFreshPromptWithBudget;
154
+ private _prepareFreshPromptWithBudgetImpl;
155
+ private _recountFreshProviderInitialInput;
156
+ private _validateFreshProviderInitialInputBudget;
103
157
  private _resolveTimeout;
158
+ private _resolveIdleTimeout;
104
159
  private _lookupCliAdapter;
160
+ private _resolveEffectiveCost;
105
161
  private _resolveEffectiveCwd;
106
162
  private _buildFileRemoteOptions;
163
+ private _registerCallerIdentityOverride;
164
+ private _clearCallerIdentityOverride;
165
+ private _rewriteCallerFacingPayload;
166
+ protected emit<K extends CrewxEventName>(event: K, payload: CrewxEventPayload<K>): void;
107
167
  private emitToolEvents;
108
168
  private emitTaskLogEntries;
169
+ private emitInterceptorSteps;
170
+ private interceptorRunContext;
109
171
  private tryParseJson;
172
+ private _resolveRunAccount;
173
+ private _reportRateLimit;
110
174
  query(agentRef: string, message: string, options?: QueryOptions): Promise<QueryResult>;
175
+ testAgentInterceptors(agentRef: string, phase: InterceptorPhase, text: string): Promise<InterceptorLaneRun | undefined>;
111
176
  continueQuery(threadId: string, toolResults: Array<{
112
177
  toolCallId: string;
113
178
  result: unknown;
@@ -0,0 +1,14 @@
1
+ export interface TaskTicketRequest {
2
+ readonly taskId: string;
3
+ readonly agentId: string;
4
+ readonly threadId: string;
5
+ readonly workspaceId: string;
6
+ readonly runEpoch: number;
7
+ }
8
+ export interface TaskTicketGrant {
9
+ readonly ticket: string;
10
+ readonly endpoint: string;
11
+ readonly workspaceSlug: string;
12
+ }
13
+ export type TaskTicketIssuer = (request: TaskTicketRequest) => Promise<TaskTicketGrant | null>;
14
+ export declare function resolveTaskTicketEnv(issuer: TaskTicketIssuer | undefined, request: TaskTicketRequest, parentEnv?: NodeJS.ProcessEnv): Promise<Record<string, string>>;
@@ -0,0 +1,2 @@
1
+ export declare const THREAD_HIGHLIGHT_PROMPT_INSTRUCTIONS: string;
2
+ export declare const THREAD_HIGHLIGHT_CONSOLIDATION_PROMPT_INSTRUCTIONS: string;
@@ -0,0 +1,326 @@
1
+ import { z } from 'zod';
2
+ import type { ThreadHighlight } from '../schema/thread-history.js';
3
+ import type { ProviderRuntime } from '../provider/bridge.js';
4
+ import type { CreateThreadHighlightInput, ThreadHighlightRegenerationCandidate } from '../repository/thread-history.repository.js';
5
+ export { THREAD_HIGHLIGHT_CONSOLIDATION_PROMPT_INSTRUCTIONS, THREAD_HIGHLIGHT_PROMPT_INSTRUCTIONS, } from './thread-highlight-prompt.js';
6
+ export declare const THREAD_HIGHLIGHTER_AGENT_ID: "thread_highlighter";
7
+ export declare const THREAD_HIGHLIGHTER_PROVIDER_ORDER: readonly ["cli/claude", "cli/opencode", "cli/copilot", "cli/codex"];
8
+ export type ThreadHighlightProviderId = (typeof THREAD_HIGHLIGHTER_PROVIDER_ORDER)[number];
9
+ export declare const MAX_THREAD_HIGHLIGHT_TURN_TEXT_LENGTH = 4000;
10
+ export declare const MAX_THREAD_HIGHLIGHT_PROMPT_LENGTH = 32000;
11
+ export declare const MAX_THREAD_HIGHLIGHTS_PER_RUN = 3;
12
+ export declare const MAX_THREAD_HIGHLIGHTS_PER_THREAD = 10;
13
+ export declare const MAX_THREAD_HIGHLIGHT_INPUT_TURNS = 100;
14
+ export declare const MAX_THREAD_HIGHLIGHT_REGENERATION_CANDIDATES = 40;
15
+ export declare const MAX_THREAD_HIGHLIGHT_ALREADY_RECORDED_COUNT = 20;
16
+ export declare const MAX_THREAD_HIGHLIGHT_ALREADY_RECORDED_TEXT_LENGTH = 160;
17
+ export declare const MAX_THREAD_HIGHLIGHT_ALREADY_RECORDED_TOTAL_LENGTH = 4000;
18
+ export declare const ThreadHighlightItemSchema: z.ZodObject<{
19
+ kind: z.ZodEnum<["decision", "judgment", "issue", "result", "pivot"]>;
20
+ text: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
21
+ anchorTaskId: z.ZodString;
22
+ coversFromTaskId: z.ZodString;
23
+ coversToTaskId: z.ZodString;
24
+ }, "strict", z.ZodTypeAny, {
25
+ text: string;
26
+ kind: "result" | "decision" | "judgment" | "issue" | "pivot";
27
+ anchorTaskId: string;
28
+ coversFromTaskId: string;
29
+ coversToTaskId: string;
30
+ }, {
31
+ text: string;
32
+ kind: "result" | "decision" | "judgment" | "issue" | "pivot";
33
+ anchorTaskId: string;
34
+ coversFromTaskId: string;
35
+ coversToTaskId: string;
36
+ }>;
37
+ export declare const ThreadHighlightResponseSchema: z.ZodObject<{
38
+ highlights: z.ZodArray<z.ZodObject<{
39
+ kind: z.ZodEnum<["decision", "judgment", "issue", "result", "pivot"]>;
40
+ text: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
41
+ anchorTaskId: z.ZodString;
42
+ coversFromTaskId: z.ZodString;
43
+ coversToTaskId: z.ZodString;
44
+ }, "strict", z.ZodTypeAny, {
45
+ text: string;
46
+ kind: "result" | "decision" | "judgment" | "issue" | "pivot";
47
+ anchorTaskId: string;
48
+ coversFromTaskId: string;
49
+ coversToTaskId: string;
50
+ }, {
51
+ text: string;
52
+ kind: "result" | "decision" | "judgment" | "issue" | "pivot";
53
+ anchorTaskId: string;
54
+ coversFromTaskId: string;
55
+ coversToTaskId: string;
56
+ }>, "many">;
57
+ }, "strict", z.ZodTypeAny, {
58
+ highlights: {
59
+ text: string;
60
+ kind: "result" | "decision" | "judgment" | "issue" | "pivot";
61
+ anchorTaskId: string;
62
+ coversFromTaskId: string;
63
+ coversToTaskId: string;
64
+ }[];
65
+ }, {
66
+ highlights: {
67
+ text: string;
68
+ kind: "result" | "decision" | "judgment" | "issue" | "pivot";
69
+ anchorTaskId: string;
70
+ coversFromTaskId: string;
71
+ coversToTaskId: string;
72
+ }[];
73
+ }>;
74
+ export declare const ThreadHighlightConsolidationItemSchema: z.ZodObject<{
75
+ id: z.ZodOptional<z.ZodString>;
76
+ source: z.ZodOptional<z.ZodEnum<["auto", "manual"]>>;
77
+ status: z.ZodOptional<z.ZodEnum<["active", "dismissed"]>>;
78
+ kind: z.ZodEnum<["decision", "judgment", "issue", "result", "pivot"]>;
79
+ text: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
80
+ anchorTaskId: z.ZodString;
81
+ coversFromTaskId: z.ZodString;
82
+ coversToTaskId: z.ZodString;
83
+ }, "strict", z.ZodTypeAny, {
84
+ text: string;
85
+ kind: "result" | "decision" | "judgment" | "issue" | "pivot";
86
+ anchorTaskId: string;
87
+ coversFromTaskId: string;
88
+ coversToTaskId: string;
89
+ id?: string | undefined;
90
+ status?: "active" | "dismissed" | undefined;
91
+ source?: "auto" | "manual" | undefined;
92
+ }, {
93
+ text: string;
94
+ kind: "result" | "decision" | "judgment" | "issue" | "pivot";
95
+ anchorTaskId: string;
96
+ coversFromTaskId: string;
97
+ coversToTaskId: string;
98
+ id?: string | undefined;
99
+ status?: "active" | "dismissed" | undefined;
100
+ source?: "auto" | "manual" | undefined;
101
+ }>;
102
+ export declare const ThreadHighlightConsolidationResponseSchema: z.ZodObject<{
103
+ highlights: z.ZodArray<z.ZodObject<{
104
+ id: z.ZodOptional<z.ZodString>;
105
+ source: z.ZodOptional<z.ZodEnum<["auto", "manual"]>>;
106
+ status: z.ZodOptional<z.ZodEnum<["active", "dismissed"]>>;
107
+ kind: z.ZodEnum<["decision", "judgment", "issue", "result", "pivot"]>;
108
+ text: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
109
+ anchorTaskId: z.ZodString;
110
+ coversFromTaskId: z.ZodString;
111
+ coversToTaskId: z.ZodString;
112
+ }, "strict", z.ZodTypeAny, {
113
+ text: string;
114
+ kind: "result" | "decision" | "judgment" | "issue" | "pivot";
115
+ anchorTaskId: string;
116
+ coversFromTaskId: string;
117
+ coversToTaskId: string;
118
+ id?: string | undefined;
119
+ status?: "active" | "dismissed" | undefined;
120
+ source?: "auto" | "manual" | undefined;
121
+ }, {
122
+ text: string;
123
+ kind: "result" | "decision" | "judgment" | "issue" | "pivot";
124
+ anchorTaskId: string;
125
+ coversFromTaskId: string;
126
+ coversToTaskId: string;
127
+ id?: string | undefined;
128
+ status?: "active" | "dismissed" | undefined;
129
+ source?: "auto" | "manual" | undefined;
130
+ }>, "many">;
131
+ }, "strict", z.ZodTypeAny, {
132
+ highlights: {
133
+ text: string;
134
+ kind: "result" | "decision" | "judgment" | "issue" | "pivot";
135
+ anchorTaskId: string;
136
+ coversFromTaskId: string;
137
+ coversToTaskId: string;
138
+ id?: string | undefined;
139
+ status?: "active" | "dismissed" | undefined;
140
+ source?: "auto" | "manual" | undefined;
141
+ }[];
142
+ }, {
143
+ highlights: {
144
+ text: string;
145
+ kind: "result" | "decision" | "judgment" | "issue" | "pivot";
146
+ anchorTaskId: string;
147
+ coversFromTaskId: string;
148
+ coversToTaskId: string;
149
+ id?: string | undefined;
150
+ status?: "active" | "dismissed" | undefined;
151
+ source?: "auto" | "manual" | undefined;
152
+ }[];
153
+ }>;
154
+ export type ThreadHighlightItem = z.infer<typeof ThreadHighlightItemSchema>;
155
+ export type ThreadHighlightResponse = z.infer<typeof ThreadHighlightResponseSchema>;
156
+ export type ThreadHighlightConsolidationResponse = z.infer<typeof ThreadHighlightConsolidationResponseSchema>;
157
+ export interface ThreadHighlightTaskTurn {
158
+ taskId?: string;
159
+ task_id?: string;
160
+ id?: string;
161
+ prompt: string;
162
+ result?: string | null;
163
+ response?: string | null;
164
+ status?: string | null;
165
+ startedAt?: string | null;
166
+ started_at?: string | null;
167
+ completedAt?: string | null;
168
+ completed_at?: string | null;
169
+ }
170
+ export interface ThreadHighlightAlreadyRecorded {
171
+ kind: ThreadHighlight['kind'];
172
+ text: string;
173
+ }
174
+ export interface ThreadHighlightGenerationInput {
175
+ threadId: string;
176
+ agentId?: string;
177
+ workspaceId?: string;
178
+ turns: readonly ThreadHighlightTaskTurn[];
179
+ alreadyRecorded?: readonly ThreadHighlightAlreadyRecorded[];
180
+ already_recorded?: readonly ThreadHighlightAlreadyRecorded[];
181
+ coversFromTaskId?: string;
182
+ coversToTaskId?: string;
183
+ covers_from_task_id?: string;
184
+ covers_to_task_id?: string;
185
+ detectorVersion?: string;
186
+ detector_version?: string;
187
+ }
188
+ export interface ThreadHighlightConsolidationItem {
189
+ id?: string | null;
190
+ source?: string | null;
191
+ status?: string | null;
192
+ kind: ThreadHighlight['kind'];
193
+ text: string | null;
194
+ anchorTaskId?: string | null;
195
+ coversFromTaskId?: string | null;
196
+ coversToTaskId?: string | null;
197
+ sourceTaskId?: string | null;
198
+ covers_from_task_id?: string | null;
199
+ covers_to_task_id?: string | null;
200
+ source_task_id?: string | null;
201
+ contentFingerprint?: string | null;
202
+ content_fingerprint?: string | null;
203
+ }
204
+ export interface ThreadHighlightConsolidationInput {
205
+ threadId?: string;
206
+ agentId?: string;
207
+ workspaceId?: string;
208
+ detectorVersion?: string;
209
+ detector_version?: string;
210
+ currentHighlights?: readonly ThreadHighlightConsolidationItem[];
211
+ currentAutoHighlights?: readonly ThreadHighlightConsolidationItem[];
212
+ current?: readonly ThreadHighlightConsolidationItem[];
213
+ existingHighlights?: readonly ThreadHighlightConsolidationItem[];
214
+ existingAutoHighlights?: readonly ThreadHighlightConsolidationItem[];
215
+ existing?: readonly ThreadHighlightConsolidationItem[];
216
+ newCandidates?: readonly ThreadHighlightConsolidationItem[];
217
+ candidates?: readonly ThreadHighlightConsolidationItem[];
218
+ newHighlights?: readonly ThreadHighlightConsolidationItem[];
219
+ manualHighlights?: readonly ThreadHighlightConsolidationItem[];
220
+ manual?: readonly ThreadHighlightConsolidationItem[];
221
+ }
222
+ export interface ThreadHighlightWriter {
223
+ resolveWorkspaceId?(threadId: string): string | null | Promise<string | null>;
224
+ createHighlight(input: CreateThreadHighlightInput): ThreadHighlight | Promise<ThreadHighlight>;
225
+ }
226
+ export interface ThreadHighlightGeneratorOptions {
227
+ repository: ThreadHighlightWriter;
228
+ workspaceId?: string;
229
+ providerFactory?: (provider: ThreadHighlightProviderId) => ProviderRuntime;
230
+ providers?: Partial<Record<ThreadHighlightProviderId, ProviderRuntime>>;
231
+ }
232
+ export interface ThreadHighlightBatchDetectorOptions {
233
+ providerFactory?: (provider: ThreadHighlightProviderId) => ProviderRuntime;
234
+ providers?: Partial<Record<ThreadHighlightProviderId, ProviderRuntime>>;
235
+ }
236
+ export interface ThreadHighlightConsolidationOptions {
237
+ providerFactory?: (provider: ThreadHighlightProviderId) => ProviderRuntime;
238
+ providers?: Partial<Record<ThreadHighlightProviderId, ProviderRuntime>>;
239
+ }
240
+ export type ThreadHighlightProviderAttemptOutcome = 'provider_error' | 'invalid_output';
241
+ export interface ThreadHighlightProviderAttempt {
242
+ provider: ThreadHighlightProviderId;
243
+ outcome: ThreadHighlightProviderAttemptOutcome;
244
+ batchIndex?: number;
245
+ }
246
+ export type ThreadHighlightFailureCode = 'INVALID_INPUT' | 'PROVIDER_EXHAUSTED' | 'INVALID_OUTPUT' | 'REPOSITORY_FAILED' | 'THREAD_HIGHLIGHT_REGENERATION_NO_ELIGIBLE_TURNS' | 'THREAD_HIGHLIGHT_REGENERATION_DETECTION_FAILED';
247
+ export interface ThreadHighlightGenerationFailure {
248
+ code: ThreadHighlightFailureCode;
249
+ message: string;
250
+ retryable: boolean;
251
+ attempts: readonly ThreadHighlightProviderAttempt[];
252
+ }
253
+ export interface ThreadHighlightGenerationSuccess {
254
+ ok: true;
255
+ provider: ThreadHighlightProviderId;
256
+ highlights: ThreadHighlight[];
257
+ attempts: readonly ThreadHighlightProviderAttempt[];
258
+ }
259
+ export interface ThreadHighlightGenerationFailureResult {
260
+ ok: false;
261
+ failure: ThreadHighlightGenerationFailure;
262
+ }
263
+ export type ThreadHighlightGenerationResult = ThreadHighlightGenerationSuccess | ThreadHighlightGenerationFailureResult;
264
+ export interface ThreadHighlightRegenerationInput extends Omit<ThreadHighlightGenerationInput, 'turns'> {
265
+ turns: readonly ThreadHighlightTaskTurn[];
266
+ }
267
+ export interface ThreadHighlightBatchDetectionSuccess {
268
+ ok: true;
269
+ provider: ThreadHighlightProviderId;
270
+ candidates: readonly ThreadHighlightRegenerationCandidate[];
271
+ batchCount: number;
272
+ attempts: readonly ThreadHighlightProviderAttempt[];
273
+ }
274
+ export type ThreadHighlightBatchDetectionResult = ThreadHighlightBatchDetectionSuccess | ThreadHighlightGenerationFailureResult;
275
+ export interface ThreadHighlightConsolidationHighlight extends ThreadHighlightRegenerationCandidate {
276
+ id?: string;
277
+ source: 'auto';
278
+ status: 'active';
279
+ }
280
+ export interface ThreadHighlightConsolidationSuccess {
281
+ ok: true;
282
+ provider: ThreadHighlightProviderId | null;
283
+ highlights: readonly ThreadHighlightConsolidationHighlight[];
284
+ candidates: readonly ThreadHighlightRegenerationCandidate[];
285
+ dismissedHighlightIds: readonly string[];
286
+ attempts: readonly ThreadHighlightProviderAttempt[];
287
+ }
288
+ export type ThreadHighlightConsolidationResult = ThreadHighlightConsolidationSuccess | ThreadHighlightGenerationFailureResult;
289
+ export declare class ThreadHighlightGenerationError extends Error {
290
+ readonly failure: ThreadHighlightGenerationFailure;
291
+ readonly name = "ThreadHighlightGenerationError";
292
+ constructor(failure: ThreadHighlightGenerationFailure);
293
+ }
294
+ export declare class ThreadHighlightOutputValidationError extends Error {
295
+ readonly issuePaths: readonly string[];
296
+ readonly name = "ThreadHighlightOutputValidationError";
297
+ constructor(issuePaths: readonly string[]);
298
+ }
299
+ export declare class ThreadHighlightInputValidationError extends Error {
300
+ readonly field: string;
301
+ readonly name = "ThreadHighlightInputValidationError";
302
+ constructor(field: string);
303
+ }
304
+ export declare function redactThreadHighlightSecrets(value: string): string;
305
+ export declare function buildThreadHighlightPrompt(input: ThreadHighlightGenerationInput): string;
306
+ export declare function buildThreadHighlightConsolidationPrompt(input: ThreadHighlightConsolidationInput): string;
307
+ export declare function parseThreadHighlightResponse(raw: unknown): ThreadHighlightResponse;
308
+ export declare function parseThreadHighlightConsolidationResponse(raw: unknown): ThreadHighlightConsolidationResponse;
309
+ export declare class ThreadHighlightGenerator {
310
+ private readonly repository;
311
+ private readonly workspaceId?;
312
+ private readonly providerFactory;
313
+ private readonly providers;
314
+ constructor(options: ThreadHighlightGeneratorOptions);
315
+ private detectBatch;
316
+ detectBatches(input: ThreadHighlightRegenerationInput): Promise<ThreadHighlightBatchDetectionResult>;
317
+ consolidate(input: ThreadHighlightConsolidationInput): Promise<ThreadHighlightConsolidationResult>;
318
+ consolidateHighlights(input: ThreadHighlightConsolidationInput): Promise<ThreadHighlightConsolidationResult>;
319
+ generate(input: ThreadHighlightGenerationInput): Promise<ThreadHighlightGenerationResult>;
320
+ generateOrThrow(input: ThreadHighlightGenerationInput): Promise<ThreadHighlightGenerationSuccess>;
321
+ }
322
+ export declare function generateThreadHighlights(input: ThreadHighlightGenerationInput, options: ThreadHighlightGeneratorOptions): Promise<ThreadHighlightGenerationResult>;
323
+ export declare function consolidateThreadHighlights(input: ThreadHighlightConsolidationInput, options?: ThreadHighlightConsolidationOptions): Promise<ThreadHighlightConsolidationResult>;
324
+ export declare function detectThreadHighlightBatches(input: ThreadHighlightRegenerationInput, options: ThreadHighlightBatchDetectorOptions): Promise<ThreadHighlightBatchDetectionResult>;
325
+ export declare const generateThreadHighlightBatches: typeof detectThreadHighlightBatches;
326
+ export declare const ThreadHighlighter: typeof ThreadHighlightGenerator;
@@ -2,8 +2,32 @@ export { Crewx } from './facade/Crewx.browser.js';
2
2
  export type { ToolDefinition, BrowserQueryOptions, BrowserFromConfigOptions } from './facade/Crewx.browser.js';
3
3
  export { registerProviderFactory, createProvider, ProviderError } from './provider/bridge.browser.js';
4
4
  export type { ProviderRuntime, ProviderFactory, ProviderQueryOptions } from './provider/bridge.browser.js';
5
+ export { classifyTaskError } from './provider/classify-task-error.js';
6
+ export { redactTechnicalMessage } from './provider/redact-technical-message.js';
7
+ export type { TaskErrorCode, TaskErrorMeta, TaskErrorProjection } from './provider/task-error.types.js';
5
8
  export { parseYamlContent, ConfigLoadError } from './config/loader.browser.js';
9
+ export { normalizeClaudeMode } from './config/canonicalize-agent-options.js';
6
10
  export { BrowserFsAdapter } from './platform/BrowserFsAdapter.js';
7
11
  export type { IFsAdapter } from './platform/IFsAdapter.js';
8
12
  export { PROVIDER_ORDER, providerRank, compareProviders, normalizeProviderId } from './provider/order.js';
9
- export type { AgentConfig, CrewxProjectConfig, CrewxOptions, QueryOptions, QueryResult, ExecuteOptions, ExecuteResult, } from './types/index.js';
13
+ export { ANTIGRAVITY_MODEL_COMPATIBILITY, CLAUDE_MODEL_COMPATIBILITY_PAIRS, CLAUDE_OPUS_4_8_BASE_MODEL_ID, CLAUDE_OPUS_4_8_LEGACY_MODEL_ID, resolveAntigravityModel, resolveCatalogModelId, resolveProviderCatalogModel, } from './config/model-compat.js';
14
+ export type { AntigravityResolvedModel } from './config/model-compat.js';
15
+ export { EFFORT_LEVELS, PROVIDER_ARGV_EFFORTS } from './config/models.generated.js';
16
+ export type { EffortLevel, KnownEffortLevel } from './config/models.generated.js';
17
+ export { getDefaultAgentProfile } from './config/default-agent-models.js';
18
+ export type { DefaultAgentProfile, DefaultAgentStage } from './config/default-agent-models.js';
19
+ export { BUILTIN_THREAD_STATES, THREAD_PRIORITIES, customStateLabel, hasThreadTitleKey, isThreadPriority, isThreadState, matchesThreadTitleFilter, mergeThreadTitleMeta, parseThreadPriorityFilter, parseThreadStateFilter, readThreadTitleMeta, threadTitleSearchHaystack, } from './repository/thread-title.types.js';
20
+ export type { BuiltinThreadState, LegacyThreadState, StableThreadState, ThreadPriority, ThreadState, ThreadTitleFilter, ThreadTitleMeta, ThreadTitlePatch, } from './repository/thread-title.types.js';
21
+ export type { AgentConfig, CrewxProjectConfig, CrewxOptions, QueryOptions, QueryResult, ExecuteOptions, ExecuteResult, ContextMode, } from './types/index.js';
22
+ export { MCP_APP_HOST_TOOL_ALLOWLIST } from './mcp-app/types.js';
23
+ export type { CrewxAppCapability, CrewxAppCatalogOptions, CrewxAppCatalogResult, CrewxAppDefinitionHashInput, CrewxAppDefinitionSummary, CrewxAppDiagnostic, CrewxAppDiagnosticCode, CrewxAppDiagnosticSource, CrewxAppInstalledProjection, CrewxAppLocalDefinitionRef, CrewxAppOrigin, CrewxAppOwnership, CrewxAppShareability, CrewxAppSharingAvailability, CrewxAppSummary, McpAppHostToolName, } from './mcp-app/types.js';
24
+ export { UI_CONTENT_MEDIA_TYPES, buildMcpAppContentActions, contentActionsMatch, isMcpAppContentActions, isUiContentMediaType, isValidUiAppInstanceId, } from './mcp-app/content-declarations.js';
25
+ export type { McpAppContentActionDeclaration, McpAppContentActions, UiContentMediaType, } from './mcp-app/content-declarations.js';
26
+ export { APP_SCHEDULE_INERT_COMMAND, APP_SCHEDULE_INTERVALS_MINUTES, APP_SCHEDULE_MAX_PER_APP, APP_SCHEDULE_PERIODIC_REASONS, APP_SCHEDULE_TIMEOUT_MS, SCHEDULE_TRIGGERS, isAppSchedulePeriodicReason, isAppScheduleCode, isAppScheduleIntervalMinutes, isAppScheduleTimeoutMs, } from './app/schedule-contract.js';
27
+ export type { AppScheduleDirective, AppScheduleIntervalMinutes, AppSchedulePeriodic, AppSchedulePeriodicReason, AppScheduleRunVerdict, AppScheduleSnapshot, AppScheduleStatus, ScheduleTrigger, ToolScheduleDeclaration, } from './app/schedule-contract.js';
28
+ export { APP_JOB_CAPABILITY, APP_JOB_CAPABILITY_VERSION, APP_JOB_DEADLINE_MS, APP_JOB_MAX_PER_APP, APP_JOB_OPERATIONS, APP_JOB_OUTCOMES, APP_JOB_RUN_REQUIRED, APP_JOB_REFUSAL_CODES, APP_JOB_STATES, APP_JOB_STOP_REASONS, APP_JOB_TRIGGERS, hasAppJobCapability, isAppJobCode, isAppJobDeadlineMs, isAppJobOperation, isAppJobPhase, } from './app/job-contract.js';
29
+ export type { AppJobCapabilityDeclaration, AppJobOperation, AppJobOutcome, AppJobRefusalCode, AppJobState, AppJobStopReason, AppJobTrigger, ToolJobDeclaration, } from './app/job-contract.js';
30
+ export { APP_JOB_BRIDGE_DRAIN_TIMEOUT_MS, APP_JOB_BRIDGE_ENV, APP_JOB_BRIDGE_MAX_LINE_BYTES, APP_JOB_BRIDGE_REPLY_TIMEOUT_MS, APP_JOB_BRIDGE_VERSION, appJobTriggerForActor, parseAppJobView, } from './app/job-wire.js';
31
+ export type { AppJobView, AppJobWireHandle } from './app/job-wire.js';
32
+ export { CREWX_OPEN_APP_CAPABILITY, CREWX_OPEN_APP_CAPABILITY_VERSION, CREWX_OPEN_APP_MAX_JSON_DEPTH, CREWX_OPEN_APP_MAX_PARAMS_BYTES, CREWX_OPEN_APP_METHOD, CREWX_OPEN_APP_STATUS_METHOD, CREWX_OPEN_APP_SUCCESS_STATUSES, CrewxOpenAppError, UI_APP_OPEN_CAUSE_CODES, UI_APP_OPEN_ERROR_CODES, canonicalCrewxOpenAppPayload, createCrewxOpenAppCapabilityDeclaration, createCrewxOpenAppErrorResult, createCrewxOpenAppRequestId, createCrewxOpenAppSuccessResult, decideCrewxOpenAppOpen, decideCrewxOpenAppStatus, isSameCrewxOpenAppSourceBinding, parseCrewxOpenAppCapabilityDeclaration, parseCrewxOpenAppRequest, parseCrewxOpenAppResult, parseCrewxOpenAppStatusRequest, resolveCrewxOpenAppActionOutcome, } from './mcp-app/app-handoff.js';
33
+ export type { CrewxOpenAppAction, CrewxOpenAppActionOutcome, CrewxOpenAppCapabilityDeclaration, CrewxOpenAppDecisionInput, CrewxOpenAppErrorResult, CrewxOpenAppIdempotencyDecision, CrewxOpenAppLedgerLookup, CrewxOpenAppLedgerRecord, CrewxOpenAppReceiptLookup, CrewxOpenAppRequest, CrewxOpenAppResult, CrewxOpenAppSourceBinding, CrewxOpenAppStatusRequest, CrewxOpenAppSuccessResult, CrewxOpenAppSuccessStatus, UiAppOpenCauseCode, UiAppOpenErrorCode, } from './mcp-app/app-handoff.js';