@qduc/term2 0.20.0 → 0.21.0

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 (424) hide show
  1. package/dist/agent.d.ts.map +1 -1
  2. package/dist/agent.js +146 -94
  3. package/dist/agent.js.map +1 -1
  4. package/dist/app.d.ts +1 -1
  5. package/dist/app.d.ts.map +1 -1
  6. package/dist/app.js +62 -36
  7. package/dist/app.js.map +1 -1
  8. package/dist/cli.js +113 -36
  9. package/dist/cli.js.map +1 -1
  10. package/dist/commands/guarded-settings-command.d.ts.map +1 -1
  11. package/dist/commands/guarded-settings-command.js +33 -5
  12. package/dist/commands/guarded-settings-command.js.map +1 -1
  13. package/dist/commands/mode-commands.d.ts +17 -12
  14. package/dist/commands/mode-commands.d.ts.map +1 -1
  15. package/dist/commands/mode-commands.js +68 -44
  16. package/dist/commands/mode-commands.js.map +1 -1
  17. package/dist/components/input/ApplicationInputSurface.d.ts.map +1 -1
  18. package/dist/components/input/ApplicationInputSurface.js +4 -0
  19. package/dist/components/input/ApplicationInputSurface.js.map +1 -1
  20. package/dist/components/input/MenuSurface.d.ts.map +1 -1
  21. package/dist/components/input/MenuSurface.js +1 -0
  22. package/dist/components/input/MenuSurface.js.map +1 -1
  23. package/dist/components/input/ProfileMenuSession.d.ts +16 -0
  24. package/dist/components/input/ProfileMenuSession.d.ts.map +1 -0
  25. package/dist/components/input/ProfileMenuSession.js +64 -0
  26. package/dist/components/input/ProfileMenuSession.js.map +1 -0
  27. package/dist/components/input/determine-active-menu.d.ts +3 -0
  28. package/dist/components/input/determine-active-menu.d.ts.map +1 -1
  29. package/dist/components/input/determine-active-menu.js +6 -1
  30. package/dist/components/input/determine-active-menu.js.map +1 -1
  31. package/dist/components/input/menu-registry.d.ts.map +1 -1
  32. package/dist/components/input/menu-registry.js +2 -0
  33. package/dist/components/input/menu-registry.js.map +1 -1
  34. package/dist/components/input/menu-types.d.ts +4 -0
  35. package/dist/components/input/menu-types.d.ts.map +1 -1
  36. package/dist/components/input/triggers.d.ts +1 -0
  37. package/dist/components/input/triggers.d.ts.map +1 -1
  38. package/dist/components/input/triggers.js +26 -0
  39. package/dist/components/input/triggers.js.map +1 -1
  40. package/dist/components/layout/BackgroundTaskManager.d.ts.map +1 -1
  41. package/dist/components/layout/BackgroundTaskManager.js +6 -2
  42. package/dist/components/layout/BackgroundTaskManager.js.map +1 -1
  43. package/dist/components/layout/BackgroundTasksPanel.d.ts.map +1 -1
  44. package/dist/components/layout/BackgroundTasksPanel.js +16 -8
  45. package/dist/components/layout/BackgroundTasksPanel.js.map +1 -1
  46. package/dist/components/layout/Banner.d.ts.map +1 -1
  47. package/dist/components/layout/Banner.js +10 -5
  48. package/dist/components/layout/Banner.js.map +1 -1
  49. package/dist/components/layout/StatusBar.d.ts.map +1 -1
  50. package/dist/components/layout/StatusBar.js +25 -12
  51. package/dist/components/layout/StatusBar.js.map +1 -1
  52. package/dist/components/menu/ProfileSelectionMenu.d.ts +12 -0
  53. package/dist/components/menu/ProfileSelectionMenu.d.ts.map +1 -0
  54. package/dist/components/menu/ProfileSelectionMenu.js +48 -0
  55. package/dist/components/menu/ProfileSelectionMenu.js.map +1 -0
  56. package/dist/components/menu/ResumeSelectionMenu.d.ts.map +1 -1
  57. package/dist/components/menu/ResumeSelectionMenu.js +6 -14
  58. package/dist/components/menu/ResumeSelectionMenu.js.map +1 -1
  59. package/dist/components/message/ChatMessage.js +1 -1
  60. package/dist/components/message/ChatMessage.js.map +1 -1
  61. package/dist/components/message/MessageList.d.ts.map +1 -1
  62. package/dist/components/message/MessageList.js +15 -9
  63. package/dist/components/message/MessageList.js.map +1 -1
  64. package/dist/components/message/command-message-helpers.d.ts +5 -5
  65. package/dist/context/InputContext.d.ts +1 -1
  66. package/dist/context/InputContext.d.ts.map +1 -1
  67. package/dist/context/InputContext.js +8 -0
  68. package/dist/context/InputContext.js.map +1 -1
  69. package/dist/contracts/session-rollover.d.ts +9 -1
  70. package/dist/contracts/session-rollover.d.ts.map +1 -1
  71. package/dist/contracts/streamed-model-turn.d.ts +20 -2
  72. package/dist/contracts/streamed-model-turn.d.ts.map +1 -1
  73. package/dist/gateway/gateway.d.ts.map +1 -1
  74. package/dist/gateway/gateway.js +19 -23
  75. package/dist/gateway/gateway.js.map +1 -1
  76. package/dist/gateway/launcher-seam.d.ts.map +1 -1
  77. package/dist/gateway/launcher-seam.js +2 -19
  78. package/dist/gateway/launcher-seam.js.map +1 -1
  79. package/dist/gateway/settings-rpc.d.ts +1 -1
  80. package/dist/gateway/settings-rpc.d.ts.map +1 -1
  81. package/dist/gateway/settings-rpc.js +2 -0
  82. package/dist/gateway/settings-rpc.js.map +1 -1
  83. package/dist/hooks/settings-completion-config.d.ts.map +1 -1
  84. package/dist/hooks/settings-completion-config.js +25 -1
  85. package/dist/hooks/settings-completion-config.js.map +1 -1
  86. package/dist/hooks/use-app-commands.d.ts +3 -1
  87. package/dist/hooks/use-app-commands.d.ts.map +1 -1
  88. package/dist/hooks/use-app-commands.js +21 -14
  89. package/dist/hooks/use-app-commands.js.map +1 -1
  90. package/dist/hooks/use-conversation.d.ts +2 -2
  91. package/dist/hooks/use-conversation.d.ts.map +1 -1
  92. package/dist/hooks/use-conversation.js +1 -1
  93. package/dist/hooks/use-conversation.js.map +1 -1
  94. package/dist/hooks/use-handoff-flow.d.ts +1 -0
  95. package/dist/hooks/use-handoff-flow.d.ts.map +1 -1
  96. package/dist/hooks/use-handoff-flow.js +19 -12
  97. package/dist/hooks/use-handoff-flow.js.map +1 -1
  98. package/dist/hooks/use-profile-selection.d.ts +34 -0
  99. package/dist/hooks/use-profile-selection.d.ts.map +1 -0
  100. package/dist/hooks/use-profile-selection.js +103 -0
  101. package/dist/hooks/use-profile-selection.js.map +1 -0
  102. package/dist/hooks/use-resume-selection.d.ts +2 -0
  103. package/dist/hooks/use-resume-selection.d.ts.map +1 -1
  104. package/dist/hooks/use-resume-selection.js +11 -9
  105. package/dist/hooks/use-resume-selection.js.map +1 -1
  106. package/dist/hooks/use-settings-value-completion.d.ts.map +1 -1
  107. package/dist/hooks/use-settings-value-completion.js +16 -0
  108. package/dist/hooks/use-settings-value-completion.js.map +1 -1
  109. package/dist/hooks/use-skill-selection.d.ts +5 -3
  110. package/dist/hooks/use-skill-selection.d.ts.map +1 -1
  111. package/dist/hooks/use-skill-selection.js +8 -6
  112. package/dist/hooks/use-skill-selection.js.map +1 -1
  113. package/dist/lib/agent-client.d.ts.map +1 -1
  114. package/dist/lib/agent-client.js +50 -14
  115. package/dist/lib/agent-client.js.map +1 -1
  116. package/dist/lib/agent-configuration.d.ts.map +1 -1
  117. package/dist/lib/agent-configuration.js +1 -4
  118. package/dist/lib/agent-configuration.js.map +1 -1
  119. package/dist/lib/agent-factory.d.ts.map +1 -1
  120. package/dist/lib/agent-factory.js +63 -41
  121. package/dist/lib/agent-factory.js.map +1 -1
  122. package/dist/lib/harness-input-idle.d.ts +10 -0
  123. package/dist/lib/harness-input-idle.d.ts.map +1 -1
  124. package/dist/lib/harness-input-idle.js +47 -5
  125. package/dist/lib/harness-input-idle.js.map +1 -1
  126. package/dist/non-interactive.d.ts.map +1 -1
  127. package/dist/non-interactive.js +6 -6
  128. package/dist/non-interactive.js.map +1 -1
  129. package/dist/prompts/memory.md +1 -1
  130. package/dist/prompts/prefix-quality.test.ts +8 -5
  131. package/dist/prompts/prompt-constructor.d.ts +5 -6
  132. package/dist/prompts/prompt-constructor.d.ts.map +1 -1
  133. package/dist/prompts/prompt-constructor.js +15 -7
  134. package/dist/prompts/prompt-constructor.js.map +1 -1
  135. package/dist/prompts/prompt-constructor.test.ts +73 -48
  136. package/dist/prompts/prompt-constructor.ts +21 -13
  137. package/dist/prompts/session-browser.md +2 -0
  138. package/dist/prompts/shell-auto-approval.d.ts +2 -2
  139. package/dist/prompts/shell-auto-approval.d.ts.map +1 -1
  140. package/dist/prompts/shell-auto-approval.js +19 -16
  141. package/dist/prompts/shell-auto-approval.js.map +1 -1
  142. package/dist/prompts/shell-auto-approval.ts +19 -16
  143. package/dist/providers/aborted-stream-recorder.js +2 -1
  144. package/dist/providers/aborted-stream-recorder.js.map +1 -1
  145. package/dist/providers/ai-sdk-streamed-model.d.ts.map +1 -1
  146. package/dist/providers/ai-sdk-streamed-model.js +7 -0
  147. package/dist/providers/ai-sdk-streamed-model.js.map +1 -1
  148. package/dist/providers/codex-responses-model.d.ts.map +1 -1
  149. package/dist/providers/codex-responses-model.js +75 -14
  150. package/dist/providers/codex-responses-model.js.map +1 -1
  151. package/dist/providers/codex-turn-converter.d.ts.map +1 -1
  152. package/dist/providers/codex-turn-converter.js +21 -4
  153. package/dist/providers/codex-turn-converter.js.map +1 -1
  154. package/dist/providers/codex.provider.d.ts.map +1 -1
  155. package/dist/providers/codex.provider.js +1 -0
  156. package/dist/providers/codex.provider.js.map +1 -1
  157. package/dist/providers/fetch/logging-middleware.d.ts.map +1 -1
  158. package/dist/providers/fetch/logging-middleware.js +22 -2
  159. package/dist/providers/fetch/logging-middleware.js.map +1 -1
  160. package/dist/providers/openai-chat-completions-model.js +119 -50
  161. package/dist/providers/openai-chat-completions-model.js.map +1 -1
  162. package/dist/providers/openai-responses-model.d.ts.map +1 -1
  163. package/dist/providers/openai-responses-model.js +131 -15
  164. package/dist/providers/openai-responses-model.js.map +1 -1
  165. package/dist/providers/registry.d.ts +1 -1
  166. package/dist/providers/registry.d.ts.map +1 -1
  167. package/dist/providers/retrying-model.d.ts.map +1 -1
  168. package/dist/providers/retrying-model.js +11 -2
  169. package/dist/providers/retrying-model.js.map +1 -1
  170. package/dist/services/agent-runtime/application-run-loop.d.ts +3 -1
  171. package/dist/services/agent-runtime/application-run-loop.d.ts.map +1 -1
  172. package/dist/services/agent-runtime/application-run-loop.js +99 -19
  173. package/dist/services/agent-runtime/application-run-loop.js.map +1 -1
  174. package/dist/services/agent-runtime/context-compaction/context-milestone-reminder.d.ts +2 -3
  175. package/dist/services/agent-runtime/context-compaction/context-milestone-reminder.d.ts.map +1 -1
  176. package/dist/services/agent-runtime/context-compaction/context-milestone-reminder.js +18 -9
  177. package/dist/services/agent-runtime/context-compaction/context-milestone-reminder.js.map +1 -1
  178. package/dist/services/agent-runtime/generation-guard.d.ts +25 -1
  179. package/dist/services/agent-runtime/generation-guard.d.ts.map +1 -1
  180. package/dist/services/agent-runtime/generation-guard.js +105 -1
  181. package/dist/services/agent-runtime/generation-guard.js.map +1 -1
  182. package/dist/services/agent-stream.d.ts +2 -0
  183. package/dist/services/agent-stream.d.ts.map +1 -1
  184. package/dist/services/agent-stream.js.map +1 -1
  185. package/dist/services/approval/approval-decision-policy.js +2 -2
  186. package/dist/services/approval/approval-decision-policy.js.map +1 -1
  187. package/dist/services/approval/shell-auto-approval-evaluator.d.ts +5 -1
  188. package/dist/services/approval/shell-auto-approval-evaluator.d.ts.map +1 -1
  189. package/dist/services/approval/shell-auto-approval-evaluator.js +42 -18
  190. package/dist/services/approval/shell-auto-approval-evaluator.js.map +1 -1
  191. package/dist/services/approval/shell-auto-approval-resolver.d.ts +5 -0
  192. package/dist/services/approval/shell-auto-approval-resolver.d.ts.map +1 -1
  193. package/dist/services/approval/shell-auto-approval-resolver.js +117 -20
  194. package/dist/services/approval/shell-auto-approval-resolver.js.map +1 -1
  195. package/dist/services/approval/tool-approval-batch-coordinator.d.ts.map +1 -1
  196. package/dist/services/approval/tool-approval-batch-coordinator.js +20 -3
  197. package/dist/services/approval/tool-approval-batch-coordinator.js.map +1 -1
  198. package/dist/services/conversation/conversation-adapter.d.ts.map +1 -1
  199. package/dist/services/conversation/conversation-adapter.js +2 -9
  200. package/dist/services/conversation/conversation-adapter.js.map +1 -1
  201. package/dist/services/conversation/conversation-decoder.d.ts.map +1 -1
  202. package/dist/services/conversation/conversation-decoder.js +6 -2
  203. package/dist/services/conversation/conversation-decoder.js.map +1 -1
  204. package/dist/services/conversation/conversation-orchestrator.d.ts.map +1 -1
  205. package/dist/services/conversation/conversation-orchestrator.js +14 -1
  206. package/dist/services/conversation/conversation-orchestrator.js.map +1 -1
  207. package/dist/services/conversation/conversation-persistence.d.ts +30 -0
  208. package/dist/services/conversation/conversation-persistence.d.ts.map +1 -1
  209. package/dist/services/conversation/conversation-persistence.js +101 -7
  210. package/dist/services/conversation/conversation-persistence.js.map +1 -1
  211. package/dist/services/conversation/conversation-replay.d.ts +2 -0
  212. package/dist/services/conversation/conversation-replay.d.ts.map +1 -1
  213. package/dist/services/conversation/conversation-replay.js +71 -57
  214. package/dist/services/conversation/conversation-replay.js.map +1 -1
  215. package/dist/services/conversation/conversation-result-builder.d.ts.map +1 -1
  216. package/dist/services/conversation/conversation-result-builder.js +21 -4
  217. package/dist/services/conversation/conversation-result-builder.js.map +1 -1
  218. package/dist/services/conversation/conversation-service.d.ts +3 -2
  219. package/dist/services/conversation/conversation-service.d.ts.map +1 -1
  220. package/dist/services/conversation/conversation-service.js +36 -15
  221. package/dist/services/conversation/conversation-service.js.map +1 -1
  222. package/dist/services/conversation/session-browser.d.ts +6 -1
  223. package/dist/services/conversation/session-browser.d.ts.map +1 -1
  224. package/dist/services/conversation/session-browser.js +128 -18
  225. package/dist/services/conversation/session-browser.js.map +1 -1
  226. package/dist/services/handoff/handoff-session.d.ts +2 -0
  227. package/dist/services/handoff/handoff-session.d.ts.map +1 -1
  228. package/dist/services/handoff/handoff-session.js +19 -3
  229. package/dist/services/handoff/handoff-session.js.map +1 -1
  230. package/dist/services/logging/conversation-log-events.d.ts +30 -3
  231. package/dist/services/logging/conversation-log-events.d.ts.map +1 -1
  232. package/dist/services/logging/conversation-log-events.js +1 -4
  233. package/dist/services/logging/conversation-log-events.js.map +1 -1
  234. package/dist/services/logging/logging-service.d.ts +1 -0
  235. package/dist/services/logging/logging-service.d.ts.map +1 -1
  236. package/dist/services/logging/logging-service.js +5 -2
  237. package/dist/services/logging/logging-service.js.map +1 -1
  238. package/dist/services/logging/provider-traffic.d.ts +8 -1
  239. package/dist/services/logging/provider-traffic.d.ts.map +1 -1
  240. package/dist/services/logging/provider-traffic.js +105 -10
  241. package/dist/services/logging/provider-traffic.js.map +1 -1
  242. package/dist/services/memory/memory-capabilities.d.ts.map +1 -1
  243. package/dist/services/memory/memory-capabilities.js +17 -5
  244. package/dist/services/memory/memory-capabilities.js.map +1 -1
  245. package/dist/services/memory/memory-store.d.ts +17 -0
  246. package/dist/services/memory/memory-store.d.ts.map +1 -1
  247. package/dist/services/memory/memory-store.js +71 -26
  248. package/dist/services/memory/memory-store.js.map +1 -1
  249. package/dist/services/mode-notices.d.ts +12 -9
  250. package/dist/services/mode-notices.d.ts.map +1 -1
  251. package/dist/services/mode-notices.js +83 -54
  252. package/dist/services/mode-notices.js.map +1 -1
  253. package/dist/services/model-service.d.ts +22 -4
  254. package/dist/services/model-service.d.ts.map +1 -1
  255. package/dist/services/model-service.js +148 -1
  256. package/dist/services/model-service.js.map +1 -1
  257. package/dist/services/models/model-catalog-session.d.ts +6 -0
  258. package/dist/services/models/model-catalog-session.d.ts.map +1 -1
  259. package/dist/services/models/model-catalog-session.js +7 -3
  260. package/dist/services/models/model-catalog-session.js.map +1 -1
  261. package/dist/services/models/model-listing.d.ts +57 -0
  262. package/dist/services/models/model-listing.d.ts.map +1 -0
  263. package/dist/services/models/model-listing.js +96 -0
  264. package/dist/services/models/model-listing.js.map +1 -0
  265. package/dist/services/models/model-resolution.d.ts +88 -0
  266. package/dist/services/models/model-resolution.d.ts.map +1 -0
  267. package/dist/services/models/model-resolution.js +292 -0
  268. package/dist/services/models/model-resolution.js.map +1 -0
  269. package/dist/services/plan-mode-interceptor.d.ts.map +1 -1
  270. package/dist/services/plan-mode-interceptor.js +5 -6
  271. package/dist/services/plan-mode-interceptor.js.map +1 -1
  272. package/dist/services/profiles/active-profile.d.ts +5 -0
  273. package/dist/services/profiles/active-profile.d.ts.map +1 -0
  274. package/dist/services/profiles/active-profile.js +33 -0
  275. package/dist/services/profiles/active-profile.js.map +1 -0
  276. package/dist/services/profiles/index.d.ts +9 -0
  277. package/dist/services/profiles/index.d.ts.map +1 -0
  278. package/dist/services/profiles/index.js +9 -0
  279. package/dist/services/profiles/index.js.map +1 -0
  280. package/dist/services/profiles/labels.d.ts +7 -0
  281. package/dist/services/profiles/labels.d.ts.map +1 -0
  282. package/dist/services/profiles/labels.js +22 -0
  283. package/dist/services/profiles/labels.js.map +1 -0
  284. package/dist/services/profiles/legacy-adapter.d.ts +28 -0
  285. package/dist/services/profiles/legacy-adapter.d.ts.map +1 -0
  286. package/dist/services/profiles/legacy-adapter.js +69 -0
  287. package/dist/services/profiles/legacy-adapter.js.map +1 -0
  288. package/dist/services/profiles/profile-transition.d.ts +48 -0
  289. package/dist/services/profiles/profile-transition.d.ts.map +1 -0
  290. package/dist/services/profiles/profile-transition.js +109 -0
  291. package/dist/services/profiles/profile-transition.js.map +1 -0
  292. package/dist/services/profiles/registry.d.ts +17 -0
  293. package/dist/services/profiles/registry.d.ts.map +1 -0
  294. package/dist/services/profiles/registry.js +147 -0
  295. package/dist/services/profiles/registry.js.map +1 -0
  296. package/dist/services/profiles/resolver.d.ts +10 -0
  297. package/dist/services/profiles/resolver.d.ts.map +1 -0
  298. package/dist/services/profiles/resolver.js +573 -0
  299. package/dist/services/profiles/resolver.js.map +1 -0
  300. package/dist/services/profiles/schema.d.ts +960 -0
  301. package/dist/services/profiles/schema.d.ts.map +1 -0
  302. package/dist/services/profiles/schema.js +196 -0
  303. package/dist/services/profiles/schema.js.map +1 -0
  304. package/dist/services/profiles/types.d.ts +224 -0
  305. package/dist/services/profiles/types.d.ts.map +1 -0
  306. package/dist/services/profiles/types.js +9 -0
  307. package/dist/services/profiles/types.js.map +1 -0
  308. package/dist/services/retry/committed-tool-continuation.d.ts +5 -0
  309. package/dist/services/retry/committed-tool-continuation.d.ts.map +1 -1
  310. package/dist/services/retry/committed-tool-continuation.js +6 -3
  311. package/dist/services/retry/committed-tool-continuation.js.map +1 -1
  312. package/dist/services/retry/retry-classifier.d.ts.map +1 -1
  313. package/dist/services/retry/retry-classifier.js +13 -10
  314. package/dist/services/retry/retry-classifier.js.map +1 -1
  315. package/dist/services/retry/retry-error-classification.d.ts +7 -0
  316. package/dist/services/retry/retry-error-classification.d.ts.map +1 -1
  317. package/dist/services/retry/retry-error-classification.js +32 -9
  318. package/dist/services/retry/retry-error-classification.js.map +1 -1
  319. package/dist/services/runtime-setting-router.d.ts.map +1 -1
  320. package/dist/services/runtime-setting-router.js +76 -23
  321. package/dist/services/runtime-setting-router.js.map +1 -1
  322. package/dist/services/session/initial-turn-recovery-handler.js +4 -4
  323. package/dist/services/session/initial-turn-recovery-handler.js.map +1 -1
  324. package/dist/services/session/session-input-planner.d.ts.map +1 -1
  325. package/dist/services/session/session-input-planner.js +2 -9
  326. package/dist/services/session/session-input-planner.js.map +1 -1
  327. package/dist/services/session/session-manager.d.ts.map +1 -1
  328. package/dist/services/session/session-manager.js +4 -1
  329. package/dist/services/session/session-manager.js.map +1 -1
  330. package/dist/services/session-rollover/session-rollover-brief.d.ts +2 -1
  331. package/dist/services/session-rollover/session-rollover-brief.d.ts.map +1 -1
  332. package/dist/services/session-rollover/session-rollover-brief.js +5 -3
  333. package/dist/services/session-rollover/session-rollover-brief.js.map +1 -1
  334. package/dist/services/settings/settings-persistence.js +1 -1
  335. package/dist/services/settings/settings-persistence.js.map +1 -1
  336. package/dist/services/settings/settings-schema.d.ts +124 -15
  337. package/dist/services/settings/settings-schema.d.ts.map +1 -1
  338. package/dist/services/settings/settings-schema.js +110 -26
  339. package/dist/services/settings/settings-schema.js.map +1 -1
  340. package/dist/services/settings/settings-service.d.ts +3 -1
  341. package/dist/services/settings/settings-service.d.ts.map +1 -1
  342. package/dist/services/settings/settings-service.js +88 -91
  343. package/dist/services/settings/settings-service.js.map +1 -1
  344. package/dist/services/settings/settings-sources.d.ts.map +1 -1
  345. package/dist/services/settings/settings-sources.js +13 -0
  346. package/dist/services/settings/settings-sources.js.map +1 -1
  347. package/dist/services/settings/test-helpers/settings-consumer-inventory.d.ts +2 -2
  348. package/dist/services/settings/test-helpers/settings-consumer-inventory.d.ts.map +1 -1
  349. package/dist/services/settings/test-helpers/settings-consumer-inventory.js +15 -0
  350. package/dist/services/settings/test-helpers/settings-consumer-inventory.js.map +1 -1
  351. package/dist/services/subagents/mentor-runner.d.ts.map +1 -1
  352. package/dist/services/subagents/mentor-runner.js +5 -2
  353. package/dist/services/subagents/mentor-runner.js.map +1 -1
  354. package/dist/services/subagents/subagent-notification-store.d.ts +10 -2
  355. package/dist/services/subagents/subagent-notification-store.d.ts.map +1 -1
  356. package/dist/services/subagents/subagent-notification-store.js +10 -5
  357. package/dist/services/subagents/subagent-notification-store.js.map +1 -1
  358. package/dist/services/subagents/tool-policy.d.ts.map +1 -1
  359. package/dist/services/subagents/tool-policy.js +10 -15
  360. package/dist/services/subagents/tool-policy.js.map +1 -1
  361. package/dist/services/tool-toggles.d.ts +20 -0
  362. package/dist/services/tool-toggles.d.ts.map +1 -0
  363. package/dist/services/tool-toggles.js +115 -0
  364. package/dist/services/tool-toggles.js.map +1 -0
  365. package/dist/slash-commands.d.ts +3 -0
  366. package/dist/slash-commands.d.ts.map +1 -1
  367. package/dist/slash-commands.js.map +1 -1
  368. package/dist/tools/agent/configure-task-check-in.d.ts +2 -0
  369. package/dist/tools/agent/configure-task-check-in.d.ts.map +1 -1
  370. package/dist/tools/agent/configure-task-check-in.js +14 -6
  371. package/dist/tools/agent/configure-task-check-in.js.map +1 -1
  372. package/dist/tools/file/apply-patch.d.ts +2 -15
  373. package/dist/tools/file/apply-patch.d.ts.map +1 -1
  374. package/dist/tools/file/apply-patch.js +163 -98
  375. package/dist/tools/file/apply-patch.js.map +1 -1
  376. package/dist/tools/file/upstream-apply-patch.d.ts +31 -0
  377. package/dist/tools/file/upstream-apply-patch.d.ts.map +1 -0
  378. package/dist/tools/file/upstream-apply-patch.js +123 -0
  379. package/dist/tools/file/upstream-apply-patch.js.map +1 -0
  380. package/dist/tools/format-helpers.d.ts +2 -0
  381. package/dist/tools/format-helpers.d.ts.map +1 -1
  382. package/dist/tools/format-helpers.js.map +1 -1
  383. package/dist/tools/session-browser/session-browser-tools.d.ts.map +1 -1
  384. package/dist/tools/session-browser/session-browser-tools.js +11 -1
  385. package/dist/tools/session-browser/session-browser-tools.js.map +1 -1
  386. package/dist/tools/session-rollover/session-rollover-tool.d.ts.map +1 -1
  387. package/dist/tools/session-rollover/session-rollover-tool.js +10 -1
  388. package/dist/tools/session-rollover/session-rollover-tool.js.map +1 -1
  389. package/dist/tools/system/shell.d.ts.map +1 -1
  390. package/dist/tools/system/shell.js +8 -2
  391. package/dist/tools/system/shell.js.map +1 -1
  392. package/dist/tools/types.d.ts +15 -2
  393. package/dist/tools/types.d.ts.map +1 -1
  394. package/dist/tools/types.js.map +1 -1
  395. package/dist/utils/ai/token-usage.d.ts +7 -0
  396. package/dist/utils/ai/token-usage.d.ts.map +1 -1
  397. package/dist/utils/ai/token-usage.js +6 -2
  398. package/dist/utils/ai/token-usage.js.map +1 -1
  399. package/dist/utils/conversation/conversation-utils.d.ts.map +1 -1
  400. package/dist/utils/conversation/conversation-utils.js +40 -1
  401. package/dist/utils/conversation/conversation-utils.js.map +1 -1
  402. package/dist/utils/conversation/message-buffer.d.ts +16 -0
  403. package/dist/utils/conversation/message-buffer.d.ts.map +1 -1
  404. package/dist/utils/conversation/message-buffer.js +33 -0
  405. package/dist/utils/conversation/message-buffer.js.map +1 -1
  406. package/dist/utils/output/trim-tool-output.d.ts +1 -1
  407. package/dist/utils/output/trim-tool-output.d.ts.map +1 -1
  408. package/dist/utils/output/trim-tool-output.js +20 -0
  409. package/dist/utils/output/trim-tool-output.js.map +1 -1
  410. package/dist/utils/resume-list.d.ts +2 -0
  411. package/dist/utils/resume-list.d.ts.map +1 -1
  412. package/dist/utils/resume-list.js +7 -14
  413. package/dist/utils/resume-list.js.map +1 -1
  414. package/dist/utils/settings-command.d.ts.map +1 -1
  415. package/dist/utils/settings-command.js +95 -9
  416. package/dist/utils/settings-command.js.map +1 -1
  417. package/dist/utils/streaming/streaming-session-factory.d.ts.map +1 -1
  418. package/dist/utils/streaming/streaming-session-factory.js +12 -0
  419. package/dist/utils/streaming/streaming-session-factory.js.map +1 -1
  420. package/dist/utils/streaming/streaming-speed-tracker.d.ts +15 -0
  421. package/dist/utils/streaming/streaming-speed-tracker.d.ts.map +1 -1
  422. package/dist/utils/streaming/streaming-speed-tracker.js +18 -1
  423. package/dist/utils/streaming/streaming-speed-tracker.js.map +1 -1
  424. package/package.json +3 -3
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile-transition.d.ts","sourceRoot":"","sources":["../../../source/services/profiles/profile-transition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAMjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG,YAAY,GAAG,aAAa,GAAG,eAAe,CAAC;AAE7F,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,sBAAsB,CAAC;IAC9B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IAC1C,qBAAqB,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACtD,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,6BAA6B,GAAG;IAClE,mEAAmE;IACnE,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,wDAAwD;IACxD,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,0EAA0E;IAC1E,2BAA2B,CAAC,EAAE,OAAO,GAAG,CAAC,MAAM,OAAO,CAAC,CAAC;IACxD,wEAAwE;IACxE,iBAAiB,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAChD,CAAC;AAEF,uEAAuE;AACvE,eAAO,MAAM,8BAA8B,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,CAEvE,CAAC;AAQF;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,eAAe,GAAG,sBAAsB,CAkBnH;AAOD,wBAAgB,qBAAqB,CACnC,eAAe,EAAE,gBAAgB,EACjC,QAAQ,EAAE,MAAM,EAChB,IAAI,GAAE,6BAAkC,GACvC,qBAAqB,CAiBvB;AAED,gFAAgF;AAChF,qBAAa,wBAAwB;;IAInC,YAAY,eAAe,EAAE,gBAAgB,EAAE,IAAI,CAAC,EAAE,qBAAqB,EAAE;IAC7E,YAAY,IAAI,EAAE,qBAAqB,GAAG;QAAE,eAAe,EAAE,gBAAgB,CAAA;KAAE,EAAE;IAejF,IAAI,CAAC,QAAQ,EAAE,MAAM,GAAG,qBAAqB,CAE5C;IAED,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,qBAAqB,CAMhD;IAED;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,qBAAqB,GAAG,IAAI,CAsBxC;CACF"}
@@ -0,0 +1,109 @@
1
+ import { isLiteProfile } from '../../prompts/prompt-constructor.js';
2
+ import { profileEnterNotice, profileExitNotice } from '../mode-notices.js';
3
+ import { resolveActiveProfile } from './active-profile.js';
4
+ import { BUILTIN_INTEGRATIONS } from './registry.js';
5
+ import { resolveProfile } from './resolver.js';
6
+ /** The interactive runtime exposes all built-in integration points. */
7
+ export const DEFAULT_AVAILABLE_INTEGRATIONS = new Map(BUILTIN_INTEGRATIONS.map((id) => [id, true]));
8
+ const resolveOptions = (deps) => ({
9
+ availableIntegrations: deps.availableIntegrations ?? DEFAULT_AVAILABLE_INTEGRATIONS,
10
+ });
11
+ const isProfile = (profile, id) => profile.identity.id === id;
12
+ /**
13
+ * Classify the runtime impact of changing between two resolved Profiles.
14
+ * Identity equality intentionally wins: re-selecting a Profile has no effects,
15
+ * even when that Profile itself carries a workflow notice.
16
+ */
17
+ export function classifyProfileTransition(current, target) {
18
+ if (current.identity.id === target.identity.id)
19
+ return 'noop';
20
+ if (isLiteProfile(current) !== isLiteProfile(target))
21
+ return 'structural';
22
+ const agentWorkflowInvolved = isProfile(current, 'builtin:mentor') ||
23
+ isProfile(target, 'builtin:mentor') ||
24
+ isProfile(current, 'builtin:orchestrator') ||
25
+ isProfile(target, 'builtin:orchestrator');
26
+ if (agentWorkflowInvolved)
27
+ return 'agent-rebuild';
28
+ const planInvolved = isProfile(current, 'builtin:plan') || isProfile(target, 'builtin:plan');
29
+ if (planInvolved)
30
+ return 'notice-only';
31
+ // A non-built-in Profile cannot be assumed to have a stable prompt/tool
32
+ // shape. Rebuild it conservatively rather than allowing stale composition.
33
+ return 'agent-rebuild';
34
+ }
35
+ const composeNotice = (exitNotice, enterNotice) => {
36
+ if (exitNotice && enterNotice)
37
+ return `${exitNotice}\n\n${enterNotice}`;
38
+ return exitNotice ?? enterNotice;
39
+ };
40
+ export function planProfileTransition(settingsService, targetId, deps = {}) {
41
+ const options = resolveOptions(deps);
42
+ // Resolve both sides before constructing the plan. In particular, do not
43
+ // write activeProfileId before an unavailable required integration fails.
44
+ const current = resolveActiveProfile(settingsService, options);
45
+ const target = resolveProfile(targetId, options);
46
+ const transitionClass = classifyProfileTransition(current, target);
47
+ const exitNotice = transitionClass === 'noop' ? null : profileExitNotice(current);
48
+ const enterNotice = transitionClass === 'noop' ? null : profileEnterNotice(target);
49
+ return {
50
+ targetId: target.identity.id,
51
+ class: transitionClass,
52
+ exitNotice,
53
+ enterNotice,
54
+ composedNotice: composeNotice(exitNotice, enterNotice),
55
+ };
56
+ }
57
+ /** Owns Profile activation effects after pure resolution and classification. */
58
+ export class ProfileTransitionService {
59
+ #settingsService;
60
+ #deps;
61
+ constructor(settingsServiceOrDeps, deps = {}) {
62
+ if ('settingsService' in settingsServiceOrDeps) {
63
+ this.#settingsService = settingsServiceOrDeps.settingsService;
64
+ const { settingsService: _settingsService, ...transitionDeps } = settingsServiceOrDeps;
65
+ this.#deps = transitionDeps;
66
+ }
67
+ else {
68
+ this.#settingsService = settingsServiceOrDeps;
69
+ this.#deps = deps;
70
+ }
71
+ }
72
+ plan(targetId) {
73
+ return planProfileTransition(this.#settingsService, targetId, this.#deps);
74
+ }
75
+ activate(targetId) {
76
+ const plan = this.plan(targetId);
77
+ if (plan.class === 'noop')
78
+ return plan;
79
+ this.commit(plan);
80
+ return plan;
81
+ }
82
+ /**
83
+ * Apply the runtime effects of a plan whose canonical selection has already
84
+ * been committed by a surrounding settings transaction.
85
+ */
86
+ commit(plan) {
87
+ if (plan.class === 'noop')
88
+ return;
89
+ if (plan.class === 'structural') {
90
+ const confirmationRequired = typeof this.#deps.requiresHistoryConfirmation === 'function'
91
+ ? this.#deps.requiresHistoryConfirmation()
92
+ : this.#deps.requiresHistoryConfirmation ?? this.#deps.clearConversation !== undefined;
93
+ if (confirmationRequired)
94
+ this.#deps.clearConversation?.();
95
+ }
96
+ // SettingsService's canonical normalization updates the compatibility
97
+ // flags and emits the active-profile change that rebuild subscribers use.
98
+ // A caller using commit() has already performed that write atomically.
99
+ if (this.#settingsService.get('app.activeProfileId') !== plan.targetId) {
100
+ this.#settingsService.set('app.activeProfileId', plan.targetId);
101
+ }
102
+ if (plan.class === 'structural' || plan.class === 'agent-rebuild') {
103
+ this.#deps.rebuildAgent?.();
104
+ }
105
+ if (plan.composedNotice)
106
+ this.#deps.queueModeNotice?.(plan.composedNotice);
107
+ }
108
+ }
109
+ //# sourceMappingURL=profile-transition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile-transition.js","sourceRoot":"","sources":["../../../source/services/profiles/profile-transition.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;A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C1E,uEAAuE;QACvE,IAAI,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,qBAAqB,CAAC,KAAK,IAAI,CAAC,QAAQ,EAAE,CAAC;YACvE,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,qBAAqB,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;QAClE,CAAC;QAED,IAAI,IAAI,CAAC,KAAK,KAAK,YAAY,IAAI,IAAI,CAAC,KAAK,KAAK,eAAe,EAAE,CAAC;YAClE,IAAI,CAAC,KAAK,CAAC,YAAY,EAAE,EAAE,CAAC;QAC9B,CAAC;QACD,IAAI,IAAI,CAAC,cAAc;YAAE,IAAI,CAAC,KAAK,CAAC,eAAe,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IAC7E,CAAC;CACF"}
@@ -0,0 +1,17 @@
1
+ import type { BlockKind, EnforcementPolicyDefinition, IntegrationDefinition, ProfileDefinition, ProfileRegistry, RegisteredBlock } from './types.js';
2
+ /** Stable source kinds owned by the application. Profile data cannot invent one. */
3
+ export declare const BUILTIN_CONTEXT_SOURCES: readonly ['environment', 'workspace', 'project-instructions', 'skills-catalog', 'memory', 'session-browser', 'repository-guidance', 'profile-document'];
4
+ export declare const BUILTIN_TOOL_CAPABILITIES: readonly ['filesystem-read-workspace', 'filesystem-read-external', 'filesystem-write', 'shell', 'web', 'memory', 'sessions', 'skills', 'mentor', 'subagents', 'background-tasks', 'user-interaction', 'code-context'];
5
+ export declare const BUILTIN_ENFORCEMENT_POLICIES: readonly ['builtin:enforcement/normal', 'builtin:enforcement/plan-read-only'];
6
+ export declare const BUILTIN_INTEGRATIONS: readonly ['builtin:integration/mentor', 'builtin:integration/async-subagents', 'builtin:integration/background-task-control'];
7
+ export declare const builtinBlocks: readonly RegisteredBlock[];
8
+ export declare const builtinPolicies: readonly EnforcementPolicyDefinition[];
9
+ export declare const builtinIntegrations: readonly IntegrationDefinition[];
10
+ export declare const builtinProfiles: readonly ProfileDefinition[];
11
+ export declare const builtinProfileRegistry: ProfileRegistry;
12
+ /** Convenience lookup for consumers that only need reusable built-in blocks. */
13
+ export declare const builtinBlockRegistry: ReadonlyMap<string, RegisteredBlock>;
14
+ export declare const isBuiltinContextSource: (value: string) => boolean;
15
+ export declare const isBuiltinToolCapability: (value: string) => boolean;
16
+ export declare const isBuiltinBlockKind: (value: string) => value is BlockKind;
17
+ //# sourceMappingURL=registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../source/services/profiles/registry.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,SAAS,EAET,2BAA2B,EAC3B,qBAAqB,EAErB,iBAAiB,EACjB,eAAe,EACf,eAAe,EAEhB,MAAM,YAAY,CAAC;AAKpB,oFAAoF;AACpF,eAAO,MAAM,uBAAuB,YAClC,aAAa,EACb,WAAW,EACX,sBAAsB,EACtB,gBAAgB,EAChB,QAAQ,EACR,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,CACV,CAAC;AAEX,eAAO,MAAM,yBAAyB,YACpC,2BAA2B,EAC3B,0BAA0B,EAC1B,kBAAkB,EAClB,OAAO,EACP,KAAK,EACL,QAAQ,EACR,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,CACN,CAAC;AAEX,eAAO,MAAM,4BAA4B,YACvC,4BAA4B,EAC5B,oCAAoC,CAC5B,CAAC;AAEX,eAAO,MAAM,oBAAoB,YAC/B,4BAA4B,EAC5B,qCAAqC,EACrC,6CAA6C,CACrC,CAAC;AA4BX,eAAO,MAAM,aAAa,EAAE,SAAS,eAAe,EAqBnD,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,SAAS,2BAA2B,EAQjE,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,SAAS,qBAAqB,EAI/D,CAAC;AAWF,eAAO,MAAM,eAAe,EAAE,SAAS,iBAAiB,EA6CvD,CAAC;AAKF,eAAO,MAAM,sBAAsB,EAAE,eAKpC,CAAC;AAEF,gFAAgF;AAChF,eAAO,MAAM,oBAAoB,sCAAgC,CAAC;AAElE,eAAO,MAAM,sBAAsB,UAAW,MAAM,KAAG,OACS,CAAC;AACjE,eAAO,MAAM,uBAAuB,UAAW,MAAM,KAAG,OACU,CAAC;AACnE,eAAO,MAAM,kBAAkB,UAAW,MAAM,KAAG,KAAK,IAAI,SACyD,CAAC"}
@@ -0,0 +1,147 @@
1
+ import fs from 'node:fs';
2
+ import path from 'node:path';
3
+ const prompt = (name) => fs.readFileSync(path.join(import.meta.dirname, '../../prompts', name), 'utf8').trim();
4
+ /** Stable source kinds owned by the application. Profile data cannot invent one. */
5
+ export const BUILTIN_CONTEXT_SOURCES = [
6
+ 'environment',
7
+ 'workspace',
8
+ 'project-instructions',
9
+ 'skills-catalog',
10
+ 'memory',
11
+ 'session-browser',
12
+ 'repository-guidance',
13
+ 'profile-document',
14
+ ];
15
+ export const BUILTIN_TOOL_CAPABILITIES = [
16
+ 'filesystem-read-workspace',
17
+ 'filesystem-read-external',
18
+ 'filesystem-write',
19
+ 'shell',
20
+ 'web',
21
+ 'memory',
22
+ 'sessions',
23
+ 'skills',
24
+ 'mentor',
25
+ 'subagents',
26
+ 'background-tasks',
27
+ 'user-interaction',
28
+ 'code-context',
29
+ ];
30
+ export const BUILTIN_ENFORCEMENT_POLICIES = [
31
+ 'builtin:enforcement/normal',
32
+ 'builtin:enforcement/plan-read-only',
33
+ ];
34
+ export const BUILTIN_INTEGRATIONS = [
35
+ 'builtin:integration/mentor',
36
+ 'builtin:integration/async-subagents',
37
+ 'builtin:integration/background-task-control',
38
+ ];
39
+ const standardContext = {
40
+ kind: 'context',
41
+ sources: BUILTIN_CONTEXT_SOURCES.filter((source) => source !== 'profile-document').map((source) => ({
42
+ id: source,
43
+ source,
44
+ })),
45
+ };
46
+ const liteContext = {
47
+ kind: 'context',
48
+ sources: standardContext.sources.map((source) => source.source === 'project-instructions' ? { ...source, enabled: false } : source),
49
+ };
50
+ const standardTools = { kind: 'tools', include: [...BUILTIN_TOOL_CAPABILITIES] };
51
+ const liteTools = {
52
+ kind: 'tools',
53
+ include: [...BUILTIN_TOOL_CAPABILITIES],
54
+ exclude: ['mentor', 'subagents'],
55
+ };
56
+ const builtinInstructionBlock = (id, entry) => ({
57
+ id,
58
+ kind: 'instructions',
59
+ definition: entry,
60
+ });
61
+ export const builtinBlocks = [
62
+ builtinInstructionBlock('builtin:instructions/lite', {
63
+ kind: 'instructions',
64
+ identity: { content: prompt('lite.md') },
65
+ }),
66
+ builtinInstructionBlock('builtin:instructions/plan', {
67
+ kind: 'instructions',
68
+ workflow: { content: prompt('plan-mode-info.md') },
69
+ }),
70
+ builtinInstructionBlock('builtin:instructions/mentor', {
71
+ kind: 'instructions',
72
+ workflow: { content: prompt('mentor-addon.md') },
73
+ }),
74
+ builtinInstructionBlock('builtin:instructions/orchestrator', {
75
+ kind: 'instructions',
76
+ workflow: { content: prompt('orchestrator.md') },
77
+ }),
78
+ { id: 'builtin:context/standard', kind: 'context', definition: standardContext },
79
+ { id: 'builtin:context/lite', kind: 'context', definition: liteContext },
80
+ { id: 'builtin:tools/standard', kind: 'tools', definition: standardTools },
81
+ { id: 'builtin:tools/lite', kind: 'tools', definition: liteTools },
82
+ ];
83
+ export const builtinPolicies = [
84
+ { id: BUILTIN_ENFORCEMENT_POLICIES[0], kind: 'enforcement', denials: [] },
85
+ {
86
+ id: BUILTIN_ENFORCEMENT_POLICIES[1],
87
+ kind: 'enforcement',
88
+ denials: ['filesystem-mutation', 'shell-mutation', 'delegated-write', 'unknown-delegated-role'],
89
+ handoffRestriction: 'plan-read-only',
90
+ },
91
+ ];
92
+ export const builtinIntegrations = [
93
+ { id: BUILTIN_INTEGRATIONS[0], kind: 'integrations', availableByDefault: false },
94
+ { id: BUILTIN_INTEGRATIONS[1], kind: 'integrations', availableByDefault: true },
95
+ { id: BUILTIN_INTEGRATIONS[2], kind: 'integrations', availableByDefault: true },
96
+ ];
97
+ const builtinProfile = (id, blocks, extendsId) => ({
98
+ schemaVersion: 1,
99
+ id,
100
+ version: '1.0.0',
101
+ name: id[0].toUpperCase() + id.slice(1),
102
+ blocks,
103
+ ...(extendsId ? { extends: extendsId } : {}),
104
+ });
105
+ export const builtinProfiles = [
106
+ builtinProfile('standard', {
107
+ instructions: { kind: 'instructions', identity: { systemOwned: 'model-family-base' } },
108
+ context: { use: 'builtin:context/standard', kind: 'context' },
109
+ tools: { use: 'builtin:tools/standard', kind: 'tools' },
110
+ enforcement: { kind: 'enforcement', policies: [BUILTIN_ENFORCEMENT_POLICIES[0]] },
111
+ presentation: { kind: 'presentation', displayName: 'Standard', label: 'STD', color: 'white' },
112
+ }),
113
+ builtinProfile('lite', {
114
+ instructions: { kind: 'instructions', identity: { use: 'builtin:instructions/lite' } },
115
+ context: { use: 'builtin:context/lite', kind: 'context' },
116
+ tools: { use: 'builtin:tools/lite', kind: 'tools' },
117
+ presentation: { kind: 'presentation', displayName: 'Lite', label: 'LITE', color: 'cyan' },
118
+ }, 'builtin:standard'),
119
+ builtinProfile('plan', {
120
+ instructions: { kind: 'instructions', workflow: { use: 'builtin:instructions/plan' } },
121
+ enforcement: { kind: 'enforcement', policies: [BUILTIN_ENFORCEMENT_POLICIES[1]] },
122
+ presentation: { kind: 'presentation', displayName: 'Plan', label: 'PLAN', color: 'yellow' },
123
+ }, 'builtin:standard'),
124
+ builtinProfile('mentor', {
125
+ instructions: { kind: 'instructions', workflow: { use: 'builtin:instructions/mentor' } },
126
+ integrations: { kind: 'integrations', integrations: [{ use: BUILTIN_INTEGRATIONS[0], required: false }] },
127
+ presentation: { kind: 'presentation', displayName: 'Mentor', label: 'MENTOR', color: 'magenta' },
128
+ }, 'builtin:standard'),
129
+ builtinProfile('orchestrator', {
130
+ instructions: { kind: 'instructions', workflow: { use: 'builtin:instructions/orchestrator' } },
131
+ integrations: { kind: 'integrations', integrations: [{ use: BUILTIN_INTEGRATIONS[1], required: true }] },
132
+ presentation: { kind: 'presentation', displayName: 'Orchestrator', label: 'ORCH', color: 'blue' },
133
+ }, 'builtin:standard'),
134
+ ];
135
+ const mapById = (values) => new Map(values.map((value) => [value.id, value]));
136
+ export const builtinProfileRegistry = {
137
+ profiles: new Map(builtinProfiles.map((profile) => [`builtin:${profile.id}`, profile])),
138
+ blocks: mapById(builtinBlocks),
139
+ policies: mapById(builtinPolicies),
140
+ integrations: mapById(builtinIntegrations),
141
+ };
142
+ /** Convenience lookup for consumers that only need reusable built-in blocks. */
143
+ export const builtinBlockRegistry = builtinProfileRegistry.blocks;
144
+ export const isBuiltinContextSource = (value) => BUILTIN_CONTEXT_SOURCES.includes(value);
145
+ export const isBuiltinToolCapability = (value) => BUILTIN_TOOL_CAPABILITIES.includes(value);
146
+ export const isBuiltinBlockKind = (value) => ['instructions', 'context', 'tools', 'enforcement', 'integrations', 'presentation', 'requirements'].includes(value);
147
+ //# sourceMappingURL=registry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../source/services/profiles/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAa7B,MAAM,MAAM,GAAG,CAAC,IAAY,EAAU,EAAE,CACtC,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,OAAO,EAAE,eAAe,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;AAExF,oFAAoF;AACpF,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,aAAa;IACb,WAAW;IACX,sBAAsB;IACtB,gBAAgB;IAChB,QAAQ;IACR,iBAAiB;IACjB,qBAAqB;IACrB,kBAAkB;CACV,CAAC;AAEX,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,2BAA2B;IAC3B,0BAA0B;IAC1B,kBAAkB;IAClB,OAAO;IACP,KAAK;IACL,Q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GAAG,CAAC,KAAa,EAAW,EAAE,CAC9D,uBAA6C,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AACjE,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,KAAa,EAAW,EAAE,CAC/D,yBAA+C,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AACnE,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,KAAa,EAAsB,EAAE,CACtE,CAAC,cAAc,EAAE,SAAS,EAAE,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { ProfileDefinition, ProfileRegistry, ResolvedProfile, ResolveOptions } from './types.js';
2
+ export declare function resolveProfile(profileId: string, registry?: ProfileRegistry, options?: ResolveOptions): ResolvedProfile;
3
+ export declare function resolveProfile(profileId: string, options?: ResolveOptions): ResolvedProfile;
4
+ export declare const createProfileRegistry: (input: {
5
+ profiles: Iterable<ProfileDefinition> | ReadonlyMap<string, ProfileDefinition>;
6
+ blocks?: Iterable<unknown> | ReadonlyMap<string, unknown>;
7
+ policies?: Iterable<unknown> | ReadonlyMap<string, unknown>;
8
+ integrations?: Iterable<unknown> | ReadonlyMap<string, unknown>;
9
+ }) => ProfileRegistry;
10
+ //# sourceMappingURL=resolver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolver.d.ts","sourceRoot":"","sources":["../../../source/services/profiles/resolver.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAQV,iBAAiB,EACjB,eAAe,EAIf,eAAe,EAGf,cAAc,EAEf,MAAM,YAAY,CAAC;AA0rBpB,wBAAgB,cAAc,CAC5B,SAAS,EAAE,MAAM,EACjB,QAAQ,CAAC,EAAE,eAAe,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,eAAe,CAAC;AACnB,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,eAAe,CAAC;AAW7F,eAAO,MAAM,qBAAqB,UAAW;IAC3C,QAAQ,EAAE,QAAQ,CAAC,iBAAiB,CAAC,GAAG,WAAW,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;IAC/E,MAAM,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC1D,QAAQ,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC5D,YAAY,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACjE,KAAG,eA6CH,CAAC"}