indusagi 0.13.6 → 0.13.7

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 (435) hide show
  1. package/LICENSE +661 -0
  2. package/README.md +7 -1
  3. package/dist/cli.js +114 -23
  4. package/package.json +54 -47
  5. package/dist/agent.js +0 -28713
  6. package/dist/ai.js +0 -19964
  7. package/dist/capabilities.js +0 -2730
  8. package/dist/connectors-saas.js +0 -3355
  9. package/dist/index.js +0 -16644
  10. package/dist/interop.js +0 -3247
  11. package/dist/knowledge/guides/authoring-an-agent.md +0 -53
  12. package/dist/knowledge/guides/choosing-tools.md +0 -49
  13. package/dist/knowledge/guides/model-selection.md +0 -51
  14. package/dist/knowledge/guides/writing-system-prompts.md +0 -53
  15. package/dist/knowledge/index.ts +0 -19
  16. package/dist/knowledge/loader.ts +0 -200
  17. package/dist/knowledge/manifest.json +0 -29
  18. package/dist/llmgateway.js +0 -3243
  19. package/dist/mcp.js +0 -1639
  20. package/dist/memory.js +0 -0
  21. package/dist/react-host/index.js +0 -101
  22. package/dist/react-host/ink.js +0 -97
  23. package/dist/react-host/jsx-runtime.js +0 -95
  24. package/dist/react-ink.js +0 -3834
  25. package/dist/runtime.js +0 -4421
  26. package/dist/shell-app.js +0 -12333
  27. package/dist/smithy.js +0 -8033
  28. package/dist/swarm.js +0 -8818
  29. package/dist/tracing.js +0 -724
  30. package/dist/tui.js +0 -2213
  31. package/dist/types/capabilities/backends/index.d.ts +0 -10
  32. package/dist/types/capabilities/backends/node-backends.d.ts +0 -30
  33. package/dist/types/capabilities/capabilities.test.d.ts +0 -14
  34. package/dist/types/capabilities/files/diff.d.ts +0 -49
  35. package/dist/types/capabilities/files/edit.d.ts +0 -21
  36. package/dist/types/capabilities/files/ls.d.ts +0 -16
  37. package/dist/types/capabilities/files/read-state-gate.d.ts +0 -69
  38. package/dist/types/capabilities/files/read-state-gate.test.d.ts +0 -14
  39. package/dist/types/capabilities/files/read.d.ts +0 -15
  40. package/dist/types/capabilities/files/write.d.ts +0 -16
  41. package/dist/types/capabilities/index.d.ts +0 -29
  42. package/dist/types/capabilities/kernel/backends.d.ts +0 -119
  43. package/dist/types/capabilities/kernel/context.d.ts +0 -52
  44. package/dist/types/capabilities/kernel/index.d.ts +0 -24
  45. package/dist/types/capabilities/kernel/output.d.ts +0 -40
  46. package/dist/types/capabilities/kernel/registry.d.ts +0 -61
  47. package/dist/types/capabilities/kernel/spec.d.ts +0 -168
  48. package/dist/types/capabilities/planning/todo.d.ts +0 -62
  49. package/dist/types/capabilities/registry.d.ts +0 -44
  50. package/dist/types/capabilities/search/find.d.ts +0 -33
  51. package/dist/types/capabilities/search/grep.d.ts +0 -30
  52. package/dist/types/capabilities/shell/bash.d.ts +0 -18
  53. package/dist/types/capabilities/shell/process.d.ts +0 -33
  54. package/dist/types/capabilities/web/webfetch.d.ts +0 -25
  55. package/dist/types/capabilities/web/websearch.d.ts +0 -23
  56. package/dist/types/connectors-saas/connectors-saas.test.d.ts +0 -12
  57. package/dist/types/connectors-saas/index.d.ts +0 -16
  58. package/dist/types/connectors-saas/saas/adapter/composio-backend.d.ts +0 -60
  59. package/dist/types/connectors-saas/saas/control/connect.d.ts +0 -114
  60. package/dist/types/connectors-saas/saas/control/tools.d.ts +0 -67
  61. package/dist/types/connectors-saas/saas/core/builder.d.ts +0 -86
  62. package/dist/types/connectors-saas/saas/core/cache.d.ts +0 -53
  63. package/dist/types/connectors-saas/saas/core/index.d.ts +0 -14
  64. package/dist/types/connectors-saas/saas/core/port.d.ts +0 -157
  65. package/dist/types/connectors-saas/saas/core/scope-planner.d.ts +0 -74
  66. package/dist/types/connectors-saas/saas/gateway.d.ts +0 -133
  67. package/dist/types/connectors-saas/saas/render/format.d.ts +0 -54
  68. package/dist/types/connectors-saas/saas/render/index.d.ts +0 -19
  69. package/dist/types/connectors-saas/saas/render/summarizers.d.ts +0 -58
  70. package/dist/types/facade/agent.d.ts +0 -1
  71. package/dist/types/facade/ai.d.ts +0 -1
  72. package/dist/types/facade/bot/actions/bash.d.ts +0 -71
  73. package/dist/types/facade/bot/actions/bash.test.d.ts +0 -1
  74. package/dist/types/facade/bot/actions/checkpoint.d.ts +0 -49
  75. package/dist/types/facade/bot/actions/checkpoint.test.d.ts +0 -1
  76. package/dist/types/facade/bot/actions/composio/accounts.d.ts +0 -22
  77. package/dist/types/facade/bot/actions/composio/client.d.ts +0 -39
  78. package/dist/types/facade/bot/actions/composio/connect.d.ts +0 -19
  79. package/dist/types/facade/bot/actions/composio/enable.d.ts +0 -25
  80. package/dist/types/facade/bot/actions/composio/execute.d.ts +0 -26
  81. package/dist/types/facade/bot/actions/composio/helpers.d.ts +0 -16
  82. package/dist/types/facade/bot/actions/composio/index.d.ts +0 -9
  83. package/dist/types/facade/bot/actions/composio/provider.d.ts +0 -8
  84. package/dist/types/facade/bot/actions/composio/toolkits.d.ts +0 -22
  85. package/dist/types/facade/bot/actions/composio/tools.d.ts +0 -28
  86. package/dist/types/facade/bot/actions/composio/types.d.ts +0 -137
  87. package/dist/types/facade/bot/actions/crew/activity-tracker.d.ts +0 -65
  88. package/dist/types/facade/bot/actions/crew/cleanup.d.ts +0 -50
  89. package/dist/types/facade/bot/actions/crew/fs-lock.d.ts +0 -11
  90. package/dist/types/facade/bot/actions/crew/index.d.ts +0 -11
  91. package/dist/types/facade/bot/actions/crew/mailbox.d.ts +0 -20
  92. package/dist/types/facade/bot/actions/crew/model-policy.d.ts +0 -22
  93. package/dist/types/facade/bot/actions/crew/names.d.ts +0 -27
  94. package/dist/types/facade/bot/actions/crew/protocol.d.ts +0 -74
  95. package/dist/types/facade/bot/actions/crew/task-store.d.ts +0 -88
  96. package/dist/types/facade/bot/actions/crew/team-attach-claim.d.ts +0 -35
  97. package/dist/types/facade/bot/actions/crew/team-config.d.ts +0 -54
  98. package/dist/types/facade/bot/actions/crew/worktree.d.ts +0 -39
  99. package/dist/types/facade/bot/actions/edit-diff.d.ts +0 -66
  100. package/dist/types/facade/bot/actions/edit-utils.d.ts +0 -86
  101. package/dist/types/facade/bot/actions/edit.d.ts +0 -59
  102. package/dist/types/facade/bot/actions/edit.test.d.ts +0 -1
  103. package/dist/types/facade/bot/actions/find.d.ts +0 -27
  104. package/dist/types/facade/bot/actions/find.test.d.ts +0 -1
  105. package/dist/types/facade/bot/actions/grep.d.ts +0 -53
  106. package/dist/types/facade/bot/actions/grep.test.d.ts +0 -1
  107. package/dist/types/facade/bot/actions/index.d.ts +0 -316
  108. package/dist/types/facade/bot/actions/kit/hook-runner.d.ts +0 -12
  109. package/dist/types/facade/bot/actions/kit/image-resize.d.ts +0 -19
  110. package/dist/types/facade/bot/actions/kit/mime.d.ts +0 -1
  111. package/dist/types/facade/bot/actions/kit/shell.d.ts +0 -12
  112. package/dist/types/facade/bot/actions/ls.d.ts +0 -41
  113. package/dist/types/facade/bot/actions/path-utils.d.ts +0 -8
  114. package/dist/types/facade/bot/actions/process-controller.d.ts +0 -14
  115. package/dist/types/facade/bot/actions/process-manager.d.ts +0 -59
  116. package/dist/types/facade/bot/actions/process-types.d.ts +0 -73
  117. package/dist/types/facade/bot/actions/process.d.ts +0 -37
  118. package/dist/types/facade/bot/actions/read-state.d.ts +0 -83
  119. package/dist/types/facade/bot/actions/read-state.test.d.ts +0 -1
  120. package/dist/types/facade/bot/actions/read.d.ts +0 -43
  121. package/dist/types/facade/bot/actions/read.test.d.ts +0 -1
  122. package/dist/types/facade/bot/actions/registry.d.ts +0 -20
  123. package/dist/types/facade/bot/actions/sandbox-backend.d.ts +0 -99
  124. package/dist/types/facade/bot/actions/sandbox-backend.test.d.ts +0 -1
  125. package/dist/types/facade/bot/actions/todo-store.d.ts +0 -76
  126. package/dist/types/facade/bot/actions/todo-types.d.ts +0 -72
  127. package/dist/types/facade/bot/actions/todo.d.ts +0 -76
  128. package/dist/types/facade/bot/actions/truncate.d.ts +0 -78
  129. package/dist/types/facade/bot/actions/webfetch.d.ts +0 -35
  130. package/dist/types/facade/bot/actions/websearch.d.ts +0 -37
  131. package/dist/types/facade/bot/actions/websearch.test.d.ts +0 -1
  132. package/dist/types/facade/bot/actions/write.d.ts +0 -45
  133. package/dist/types/facade/bot/agent-loop.d.ts +0 -30
  134. package/dist/types/facade/bot/agent-loop.test.d.ts +0 -1
  135. package/dist/types/facade/bot/agent.d.ts +0 -140
  136. package/dist/types/facade/bot/error-handler.d.ts +0 -7
  137. package/dist/types/facade/bot/event-bus.d.ts +0 -8
  138. package/dist/types/facade/bot/index.d.ts +0 -7
  139. package/dist/types/facade/bot/messages.d.ts +0 -83
  140. package/dist/types/facade/bot/permission-gate.test.d.ts +0 -1
  141. package/dist/types/facade/bot/proxy.d.ts +0 -70
  142. package/dist/types/facade/bot/session-manager.d.ts +0 -409
  143. package/dist/types/facade/bot/state-manager.d.ts +0 -21
  144. package/dist/types/facade/bot/telemetry.d.ts +0 -6
  145. package/dist/types/facade/bot/types.d.ts +0 -267
  146. package/dist/types/facade/mcp-core/client-pool.d.ts +0 -105
  147. package/dist/types/facade/mcp-core/client.d.ts +0 -213
  148. package/dist/types/facade/mcp-core/client.test.d.ts +0 -18
  149. package/dist/types/facade/mcp-core/config.d.ts +0 -60
  150. package/dist/types/facade/mcp-core/errors.d.ts +0 -103
  151. package/dist/types/facade/mcp-core/index.d.ts +0 -55
  152. package/dist/types/facade/mcp-core/schema-converter.d.ts +0 -67
  153. package/dist/types/facade/mcp-core/server.d.ts +0 -110
  154. package/dist/types/facade/mcp-core/tool-factory.d.ts +0 -62
  155. package/dist/types/facade/mcp-core/types.d.ts +0 -298
  156. package/dist/types/facade/mcp.d.ts +0 -1
  157. package/dist/types/facade/memory.d.ts +0 -1
  158. package/dist/types/facade/ml/adapters/amazon-bedrock.d.ts +0 -32
  159. package/dist/types/facade/ml/adapters/anthropic-retry.test.d.ts +0 -1
  160. package/dist/types/facade/ml/adapters/anthropic.d.ts +0 -78
  161. package/dist/types/facade/ml/adapters/azure-openai-responses.d.ts +0 -14
  162. package/dist/types/facade/ml/adapters/google-shared.d.ts +0 -99
  163. package/dist/types/facade/ml/adapters/google-vertex.d.ts +0 -14
  164. package/dist/types/facade/ml/adapters/google.d.ts +0 -15
  165. package/dist/types/facade/ml/adapters/kimi.d.ts +0 -21
  166. package/dist/types/facade/ml/adapters/mock.d.ts +0 -9
  167. package/dist/types/facade/ml/adapters/nvidia.d.ts +0 -12
  168. package/dist/types/facade/ml/adapters/openai-codex-responses.d.ts +0 -8
  169. package/dist/types/facade/ml/adapters/openai-completions.d.ts +0 -24
  170. package/dist/types/facade/ml/adapters/openai-responses-shared.d.ts +0 -25
  171. package/dist/types/facade/ml/adapters/openai-responses.d.ts +0 -12
  172. package/dist/types/facade/ml/adapters/openai-scaffold.d.ts +0 -3
  173. package/dist/types/facade/ml/adapters/register-builtins.d.ts +0 -2
  174. package/dist/types/facade/ml/adapters/simple-options.d.ts +0 -39
  175. package/dist/types/facade/ml/adapters/simple-options.test.d.ts +0 -1
  176. package/dist/types/facade/ml/adapters/transform-messages.d.ts +0 -23
  177. package/dist/types/facade/ml/api-registry.d.ts +0 -49
  178. package/dist/types/facade/ml/cli.d.ts +0 -2
  179. package/dist/types/facade/ml/env-api-keys.d.ts +0 -19
  180. package/dist/types/facade/ml/index.d.ts +0 -27
  181. package/dist/types/facade/ml/kit/auth/anthropic.d.ts +0 -17
  182. package/dist/types/facade/ml/kit/auth/github-copilot.d.ts +0 -22
  183. package/dist/types/facade/ml/kit/auth/index.d.ts +0 -50
  184. package/dist/types/facade/ml/kit/auth/kimi.d.ts +0 -23
  185. package/dist/types/facade/ml/kit/auth/oauth-page.d.ts +0 -2
  186. package/dist/types/facade/ml/kit/auth/openai-codex.d.ts +0 -36
  187. package/dist/types/facade/ml/kit/auth/pkce.d.ts +0 -12
  188. package/dist/types/facade/ml/kit/auth/types.d.ts +0 -67
  189. package/dist/types/facade/ml/kit/base-stream-handler.d.ts +0 -30
  190. package/dist/types/facade/ml/kit/event-stream.d.ts +0 -63
  191. package/dist/types/facade/ml/kit/index.d.ts +0 -14
  192. package/dist/types/facade/ml/kit/json-parse.d.ts +0 -23
  193. package/dist/types/facade/ml/kit/message-transform.d.ts +0 -32
  194. package/dist/types/facade/ml/kit/output-factory.d.ts +0 -8
  195. package/dist/types/facade/ml/kit/overflow.d.ts +0 -9
  196. package/dist/types/facade/ml/kit/provider-adapter.d.ts +0 -56
  197. package/dist/types/facade/ml/kit/provider-client-builder.d.ts +0 -36
  198. package/dist/types/facade/ml/kit/provider-consolidation.d.ts +0 -3
  199. package/dist/types/facade/ml/kit/provider-constants.d.ts +0 -34
  200. package/dist/types/facade/ml/kit/provider-errors.d.ts +0 -52
  201. package/dist/types/facade/ml/kit/sanitize-unicode.d.ts +0 -2
  202. package/dist/types/facade/ml/kit/stream-event-helper.d.ts +0 -38
  203. package/dist/types/facade/ml/kit/stream-handler-types.d.ts +0 -46
  204. package/dist/types/facade/ml/kit/streaming-state-manager.d.ts +0 -42
  205. package/dist/types/facade/ml/kit/tool-converter.d.ts +0 -49
  206. package/dist/types/facade/ml/kit/typebox-helpers.d.ts +0 -24
  207. package/dist/types/facade/ml/kit/validation.d.ts +0 -26
  208. package/dist/types/facade/ml/models.d.ts +0 -41
  209. package/dist/types/facade/ml/models.generated.d.ts +0 -12405
  210. package/dist/types/facade/ml/stream.d.ts +0 -27
  211. package/dist/types/facade/ml/types.d.ts +0 -269
  212. package/dist/types/index.d.ts +0 -16
  213. package/dist/types/interop/index.d.ts +0 -12
  214. package/dist/types/interop/interop.test.d.ts +0 -19
  215. package/dist/types/interop/protocol-bridge/bridge.d.ts +0 -52
  216. package/dist/types/interop/protocol-bridge/contract.d.ts +0 -249
  217. package/dist/types/interop/protocol-bridge/endpoint.d.ts +0 -124
  218. package/dist/types/interop/protocol-bridge/fleet.d.ts +0 -92
  219. package/dist/types/interop/protocol-bridge/host.d.ts +0 -61
  220. package/dist/types/interop/protocol-bridge/index.d.ts +0 -16
  221. package/dist/types/interop/protocol-bridge/schema.d.ts +0 -29
  222. package/dist/types/llmgateway/catalog/cards.d.ts +0 -18
  223. package/dist/types/llmgateway/catalog/cost.d.ts +0 -15
  224. package/dist/types/llmgateway/catalog/index.d.ts +0 -7
  225. package/dist/types/llmgateway/catalog/query.d.ts +0 -40
  226. package/dist/types/llmgateway/connectors/anthropic.d.ts +0 -35
  227. package/dist/types/llmgateway/connectors/azure-openai.d.ts +0 -33
  228. package/dist/types/llmgateway/connectors/bedrock.d.ts +0 -113
  229. package/dist/types/llmgateway/connectors/google-vertex.d.ts +0 -38
  230. package/dist/types/llmgateway/connectors/google.d.ts +0 -40
  231. package/dist/types/llmgateway/connectors/index.d.ts +0 -26
  232. package/dist/types/llmgateway/connectors/kimi.d.ts +0 -28
  233. package/dist/types/llmgateway/connectors/mock.d.ts +0 -37
  234. package/dist/types/llmgateway/connectors/nvidia.d.ts +0 -27
  235. package/dist/types/llmgateway/connectors/ollama.d.ts +0 -45
  236. package/dist/types/llmgateway/connectors/openai-chat.d.ts +0 -25
  237. package/dist/types/llmgateway/connectors/openai-responses.d.ts +0 -49
  238. package/dist/types/llmgateway/contract/connector.d.ts +0 -32
  239. package/dist/types/llmgateway/contract/conversation.d.ts +0 -86
  240. package/dist/types/llmgateway/contract/emission.d.ts +0 -55
  241. package/dist/types/llmgateway/contract/errors.d.ts +0 -27
  242. package/dist/types/llmgateway/contract/index.d.ts +0 -13
  243. package/dist/types/llmgateway/contract/model-card.d.ts +0 -42
  244. package/dist/types/llmgateway/contract/options.d.ts +0 -31
  245. package/dist/types/llmgateway/contract/reply.d.ts +0 -33
  246. package/dist/types/llmgateway/conversion/index.d.ts +0 -10
  247. package/dist/types/llmgateway/conversion/mappers.d.ts +0 -65
  248. package/dist/types/llmgateway/conversion/openai-compatible.d.ts +0 -46
  249. package/dist/types/llmgateway/conversion/reduce.d.ts +0 -20
  250. package/dist/types/llmgateway/credentials/oauth.d.ts +0 -73
  251. package/dist/types/llmgateway/credentials/pkce.d.ts +0 -52
  252. package/dist/types/llmgateway/credentials/secrets.d.ts +0 -74
  253. package/dist/types/llmgateway/gateway.d.ts +0 -34
  254. package/dist/types/llmgateway/gateway.test.d.ts +0 -14
  255. package/dist/types/llmgateway/index.d.ts +0 -11
  256. package/dist/types/llmgateway/streaming/channel.d.ts +0 -24
  257. package/dist/types/llmgateway/streaming/index.d.ts +0 -10
  258. package/dist/types/llmgateway/streaming/ndjson.d.ts +0 -17
  259. package/dist/types/llmgateway/streaming/sse.d.ts +0 -31
  260. package/dist/types/react-host/index.d.ts +0 -9
  261. package/dist/types/react-host/ink.d.ts +0 -5
  262. package/dist/types/react-host/jsx-runtime.d.ts +0 -4
  263. package/dist/types/react-host/loader.d.ts +0 -3
  264. package/dist/types/react-ink/components/ChangelogBlock.d.ts +0 -8
  265. package/dist/types/react-ink/components/DisplayBlockView.d.ts +0 -8
  266. package/dist/types/react-ink/components/Footer.d.ts +0 -11
  267. package/dist/types/react-ink/components/MessageList.d.ts +0 -14
  268. package/dist/types/react-ink/components/MessageRow.d.ts +0 -13
  269. package/dist/types/react-ink/components/StatusLine.d.ts +0 -18
  270. package/dist/types/react-ink/components/TaskPanel.d.ts +0 -11
  271. package/dist/types/react-ink/components/ToolEventBlock.d.ts +0 -48
  272. package/dist/types/react-ink/components/ToolEventBlock.test.d.ts +0 -1
  273. package/dist/types/react-ink/components/dialogs/DialogFrame.d.ts +0 -8
  274. package/dist/types/react-ink/components/dialogs/LoginDialog.d.ts +0 -14
  275. package/dist/types/react-ink/components/dialogs/ModelDialog.d.ts +0 -9
  276. package/dist/types/react-ink/components/dialogs/OAuthDialog.d.ts +0 -9
  277. package/dist/types/react-ink/components/dialogs/ScopedModelsDialog.d.ts +0 -9
  278. package/dist/types/react-ink/components/dialogs/SelectableDialog.d.ts +0 -22
  279. package/dist/types/react-ink/components/dialogs/SessionDialog.d.ts +0 -13
  280. package/dist/types/react-ink/components/dialogs/SettingsDialog.d.ts +0 -14
  281. package/dist/types/react-ink/components/dialogs/StartupSessionPicker.d.ts +0 -9
  282. package/dist/types/react-ink/components/dialogs/ThemeDialog.d.ts +0 -26
  283. package/dist/types/react-ink/components/dialogs/TreeDialog.d.ts +0 -8
  284. package/dist/types/react-ink/components/dialogs/UserMessageDialog.d.ts +0 -8
  285. package/dist/types/react-ink/components/messages/AssistantMessage.d.ts +0 -12
  286. package/dist/types/react-ink/components/messages/BashMessage.d.ts +0 -8
  287. package/dist/types/react-ink/components/messages/BranchSummaryMessage.d.ts +0 -8
  288. package/dist/types/react-ink/components/messages/CompactionMessage.d.ts +0 -8
  289. package/dist/types/react-ink/components/messages/CustomMessage.d.ts +0 -9
  290. package/dist/types/react-ink/components/messages/SkillInvocationMessage.d.ts +0 -7
  291. package/dist/types/react-ink/components/messages/ToolCallMessage.d.ts +0 -8
  292. package/dist/types/react-ink/components/messages/ToolResultBlock.d.ts +0 -12
  293. package/dist/types/react-ink/components/messages/UserMessage.d.ts +0 -9
  294. package/dist/types/react-ink/diff/Diff.d.ts +0 -22
  295. package/dist/types/react-ink/diff/diff.test.d.ts +0 -1
  296. package/dist/types/react-ink/diff/structured.d.ts +0 -41
  297. package/dist/types/react-ink/diff/word-diff.d.ts +0 -27
  298. package/dist/types/react-ink/index.d.ts +0 -42
  299. package/dist/types/react-ink/markdown/Markdown.d.ts +0 -23
  300. package/dist/types/react-ink/markdown/MarkdownTable.d.ts +0 -19
  301. package/dist/types/react-ink/markdown/StreamingMarkdown.d.ts +0 -34
  302. package/dist/types/react-ink/markdown/format-token.d.ts +0 -39
  303. package/dist/types/react-ink/markdown/highlight.d.ts +0 -31
  304. package/dist/types/react-ink/theme-adapter.d.ts +0 -66
  305. package/dist/types/react-ink/types.d.ts +0 -133
  306. package/dist/types/react-ink/utils/message-groups.d.ts +0 -25
  307. package/dist/types/react-ink/utils/selection-dialog.d.ts +0 -2
  308. package/dist/types/react-ink/utils/session-browser.d.ts +0 -27
  309. package/dist/types/react-ink/utils/tool-display.d.ts +0 -37
  310. package/dist/types/runtime/cadence/cadence.test.d.ts +0 -6
  311. package/dist/types/runtime/cadence/fold.d.ts +0 -48
  312. package/dist/types/runtime/cadence/index.d.ts +0 -12
  313. package/dist/types/runtime/cadence/reducer.d.ts +0 -44
  314. package/dist/types/runtime/conductor/agent.d.ts +0 -71
  315. package/dist/types/runtime/conductor/index.d.ts +0 -11
  316. package/dist/types/runtime/contract/config.d.ts +0 -44
  317. package/dist/types/runtime/contract/effect.d.ts +0 -41
  318. package/dist/types/runtime/contract/errors.d.ts +0 -22
  319. package/dist/types/runtime/contract/events.d.ts +0 -63
  320. package/dist/types/runtime/contract/index.d.ts +0 -18
  321. package/dist/types/runtime/contract/run-state.d.ts +0 -57
  322. package/dist/types/runtime/contract/session.d.ts +0 -42
  323. package/dist/types/runtime/contract/signal.d.ts +0 -49
  324. package/dist/types/runtime/contract/tools.d.ts +0 -45
  325. package/dist/types/runtime/dispatch/index.d.ts +0 -9
  326. package/dist/types/runtime/dispatch/scheduler.d.ts +0 -53
  327. package/dist/types/runtime/index.d.ts +0 -22
  328. package/dist/types/runtime/ledger/accumulator.d.ts +0 -44
  329. package/dist/types/runtime/ledger/bus.d.ts +0 -50
  330. package/dist/types/runtime/ledger/index.d.ts +0 -11
  331. package/dist/types/runtime/memory/compactor.d.ts +0 -56
  332. package/dist/types/runtime/memory/estimate.d.ts +0 -21
  333. package/dist/types/runtime/memory/index.d.ts +0 -8
  334. package/dist/types/runtime/runtime.test.d.ts +0 -15
  335. package/dist/types/runtime/store/dag.d.ts +0 -72
  336. package/dist/types/runtime/store/hash.d.ts +0 -18
  337. package/dist/types/runtime/store/index.d.ts +0 -12
  338. package/dist/types/runtime/store/persist.d.ts +0 -49
  339. package/dist/types/runtime/turn/driver.d.ts +0 -32
  340. package/dist/types/runtime/turn/index.d.ts +0 -8
  341. package/dist/types/runtime/wire/index.d.ts +0 -10
  342. package/dist/types/runtime/wire/projectors.d.ts +0 -53
  343. package/dist/types/shell-app/auth-cli/index.d.ts +0 -9
  344. package/dist/types/shell-app/auth-cli/oauth-cli.d.ts +0 -73
  345. package/dist/types/shell-app/boot/context.d.ts +0 -108
  346. package/dist/types/shell-app/boot/index.d.ts +0 -13
  347. package/dist/types/shell-app/boot/pipeline.d.ts +0 -66
  348. package/dist/types/shell-app/boot/stages.d.ts +0 -77
  349. package/dist/types/shell-app/cli.d.ts +0 -75
  350. package/dist/types/shell-app/config/index.d.ts +0 -11
  351. package/dist/types/shell-app/config/locator.d.ts +0 -85
  352. package/dist/types/shell-app/config/settings.d.ts +0 -91
  353. package/dist/types/shell-app/index.d.ts +0 -26
  354. package/dist/types/shell-app/invocation/flags.d.ts +0 -89
  355. package/dist/types/shell-app/invocation/parse.d.ts +0 -89
  356. package/dist/types/shell-app/locate/brand.d.ts +0 -71
  357. package/dist/types/shell-app/locate/index.d.ts +0 -12
  358. package/dist/types/shell-app/locate/locator.d.ts +0 -122
  359. package/dist/types/shell-app/runners/contract.d.ts +0 -116
  360. package/dist/types/shell-app/runners/index.d.ts +0 -15
  361. package/dist/types/shell-app/runners/one-shot.d.ts +0 -21
  362. package/dist/types/shell-app/runners/registry.d.ts +0 -34
  363. package/dist/types/shell-app/runners/repl.d.ts +0 -51
  364. package/dist/types/shell-app/runners/wire.d.ts +0 -34
  365. package/dist/types/shell-app/shell-app.test.d.ts +0 -14
  366. package/dist/types/shell-app/upgrade/index.d.ts +0 -9
  367. package/dist/types/shell-app/upgrade/upgrades.d.ts +0 -62
  368. package/dist/types/smithy/config/flag-reader.d.ts +0 -128
  369. package/dist/types/smithy/config/index.d.ts +0 -9
  370. package/dist/types/smithy/forge.d.ts +0 -135
  371. package/dist/types/smithy/index.d.ts +0 -36
  372. package/dist/types/smithy/knowledge/index.d.ts +0 -10
  373. package/dist/types/smithy/knowledge/loader.d.ts +0 -64
  374. package/dist/types/smithy/persona/blueprint.d.ts +0 -75
  375. package/dist/types/smithy/persona/define-agent.d.ts +0 -51
  376. package/dist/types/smithy/persona/index.d.ts +0 -14
  377. package/dist/types/smithy/persona/profiles.d.ts +0 -44
  378. package/dist/types/smithy/runtime/index.d.ts +0 -9
  379. package/dist/types/smithy/runtime/tool-ledger.d.ts +0 -130
  380. package/dist/types/smithy/smithy.test.d.ts +0 -20
  381. package/dist/types/smithy/ui/index.d.ts +0 -11
  382. package/dist/types/smithy/ui/transcript.d.ts +0 -183
  383. package/dist/types/swarm/coordinator.d.ts +0 -192
  384. package/dist/types/swarm/index.d.ts +0 -33
  385. package/dist/types/swarm/isolation/index.d.ts +0 -14
  386. package/dist/types/swarm/isolation/runner.d.ts +0 -61
  387. package/dist/types/swarm/isolation/worktree.d.ts +0 -142
  388. package/dist/types/swarm/kernel/faults.d.ts +0 -52
  389. package/dist/types/swarm/kernel/ids.d.ts +0 -25
  390. package/dist/types/swarm/kernel/index.d.ts +0 -26
  391. package/dist/types/swarm/kernel/json-cell.d.ts +0 -113
  392. package/dist/types/swarm/kernel/jsonl-log.d.ts +0 -81
  393. package/dist/types/swarm/postbox/channel.d.ts +0 -88
  394. package/dist/types/swarm/postbox/codecs.d.ts +0 -253
  395. package/dist/types/swarm/postbox/index.d.ts +0 -16
  396. package/dist/types/swarm/roster/index.d.ts +0 -16
  397. package/dist/types/swarm/roster/manifest.d.ts +0 -185
  398. package/dist/types/swarm/swarm.test.d.ts +0 -24
  399. package/dist/types/swarm/telemetry/activity.d.ts +0 -143
  400. package/dist/types/swarm/workboard/board.d.ts +0 -174
  401. package/dist/types/swarm/workboard/dep-graph.d.ts +0 -77
  402. package/dist/types/swarm/workboard/index.d.ts +0 -12
  403. package/dist/types/tracing/adapter/index.d.ts +0 -12
  404. package/dist/types/tracing/adapter/runtime-trace.d.ts +0 -54
  405. package/dist/types/tracing/channel/index.d.ts +0 -9
  406. package/dist/types/tracing/channel/signal.d.ts +0 -93
  407. package/dist/types/tracing/index.d.ts +0 -25
  408. package/dist/types/tracing/recorder/index.d.ts +0 -12
  409. package/dist/types/tracing/recorder/recorder.d.ts +0 -75
  410. package/dist/types/tracing/recorder/sampling.d.ts +0 -55
  411. package/dist/types/tracing/redaction/index.d.ts +0 -8
  412. package/dist/types/tracing/redaction/secret-scrubber.d.ts +0 -95
  413. package/dist/types/tracing/registry/hub.d.ts +0 -57
  414. package/dist/types/tracing/registry/index.d.ts +0 -7
  415. package/dist/types/tracing/signal/handle.d.ts +0 -73
  416. package/dist/types/tracing/signal/index.d.ts +0 -12
  417. package/dist/types/tracing/signal/segment.d.ts +0 -124
  418. package/dist/types/tracing/sinks/base.d.ts +0 -51
  419. package/dist/types/tracing/sinks/console.d.ts +0 -44
  420. package/dist/types/tracing/sinks/file.d.ts +0 -47
  421. package/dist/types/tracing/sinks/index.d.ts +0 -16
  422. package/dist/types/tracing/sinks/stream.d.ts +0 -46
  423. package/dist/types/tracing/tracing.test.d.ts +0 -7
  424. package/dist/types/ui/autocomplete.d.ts +0 -59
  425. package/dist/types/ui/contracts.d.ts +0 -38
  426. package/dist/types/ui/editor-component.d.ts +0 -100
  427. package/dist/types/ui/fuzzy.d.ts +0 -29
  428. package/dist/types/ui/index.d.ts +0 -8
  429. package/dist/types/ui/keybindings.d.ts +0 -62
  430. package/dist/types/ui/keys.d.ts +0 -171
  431. package/dist/types/ui/theme-types.d.ts +0 -36
  432. package/dist/types/ui/utils.d.ts +0 -101
  433. package/dist/types/ui-bridge/InteractiveApp.d.ts +0 -38
  434. package/dist/types/ui-bridge/adapter.d.ts +0 -90
  435. package/dist/types/ui-bridge/index.d.ts +0 -37
@@ -1,16 +0,0 @@
1
- /**
2
- * The sinks layer — public surface.
3
- *
4
- * The {@link Sink} contract (`drain`/`flush?`/`close?`) and its concrete
5
- * implementations: {@link ConsoleSink} (one pretty line per closed segment),
6
- * {@link FileSink} (NDJSON of {@link TraceRecord}s appended to a path), and
7
- * {@link StreamSink} (JSON lines to an injected `Writable`). Each consumes a
8
- * {@link import('../channel/signal').SignalChannel} and writes somewhere.
9
- */
10
- export type { Sink } from "./base";
11
- export { ConsoleSink } from "./console";
12
- export type { ConsoleSinkOptions } from "./console";
13
- export { FileSink } from "./file";
14
- export type { FileSinkOptions } from "./file";
15
- export { StreamSink } from "./stream";
16
- export type { StreamSinkOptions } from "./stream";
@@ -1,46 +0,0 @@
1
- /**
2
- * {@link StreamSink}: writes closed segments to an injected {@link Writable}.
3
- *
4
- * It drains a {@link SignalChannel} and, for every `close` signal, serializes the
5
- * {@link TraceRecord} to a JSON line and writes it to a caller-provided
6
- * `node:stream` {@link Writable} — `process.stdout`, a file write stream, a
7
- * network socket, a `PassThrough` in tests. This is the most general sink: the
8
- * destination is whatever Writable you hand it.
9
- *
10
- * Backpressure is honoured. When `write` returns `false` (the stream's internal
11
- * buffer is full) the sink awaits the next `drain` event before continuing, so a
12
- * slow consumer throttles the trace rather than ballooning memory. {@link close}
13
- * optionally ends the underlying stream when the sink was told it owns it.
14
- */
15
- import type { Writable } from "node:stream";
16
- import type { SignalChannel } from "../channel/signal";
17
- import type { Sink } from "./base";
18
- /** Tuning for a {@link StreamSink}. */
19
- export interface StreamSinkOptions {
20
- /**
21
- * Whether {@link close} should `end()` the underlying stream. Defaults to
22
- * `false` — by default the sink writes but never closes a stream it did not
23
- * create (e.g. you would not want it ending `process.stdout`).
24
- */
25
- readonly endOnClose?: boolean;
26
- }
27
- /**
28
- * A {@link Sink} that writes each closed segment as a JSON line to a {@link Writable}.
29
- *
30
- * Owns no buffer of its own — bytes go straight to the stream — so {@link flush}
31
- * is a no-op resolution. {@link close} ends the stream only when constructed with
32
- * `endOnClose: true`.
33
- */
34
- export declare class StreamSink implements Sink {
35
- private readonly stream;
36
- private readonly endOnClose;
37
- constructor(stream: Writable, options?: StreamSinkOptions);
38
- /** Write `line`, resolving once it is accepted or once backpressure clears. */
39
- private writeLine;
40
- /** Drain `channel`, writing a JSON line per closed record (with backpressure). */
41
- drain(channel: SignalChannel): Promise<void>;
42
- /** No-op: bytes are not buffered by this sink. Present for interface symmetry. */
43
- flush(): Promise<void>;
44
- /** End the underlying stream when this sink owns it (`endOnClose`); else no-op. */
45
- close(): Promise<void>;
46
- }
@@ -1,7 +0,0 @@
1
- /**
2
- * Behavioural tests for the homegrown tracer: the {@link Recorder} → channel →
3
- * sink flow, sampling, secret redaction, and the runtime {@link traceAgentRun}
4
- * adapter. No network and no real timers; the {@link FileSink} writes under
5
- * {@link os.tmpdir}.
6
- */
7
- export {};
@@ -1,59 +0,0 @@
1
- export interface AutocompleteItem {
2
- value: string;
3
- label: string;
4
- description?: string;
5
- }
6
- export interface SlashCommand {
7
- name: string;
8
- description?: string;
9
- getArgumentCompletions?(argumentPrefix: string): AutocompleteItem[] | null;
10
- }
11
- export interface AutocompleteProvider {
12
- getSuggestions(lines: string[], cursorLine: number, cursorCol: number): {
13
- items: AutocompleteItem[];
14
- prefix: string;
15
- } | null;
16
- applyCompletion(lines: string[], cursorLine: number, cursorCol: number, item: AutocompleteItem, prefix: string): {
17
- lines: string[];
18
- cursorLine: number;
19
- cursorCol: number;
20
- };
21
- }
22
- type SuggestionResult = {
23
- items: AutocompleteItem[];
24
- prefix: string;
25
- };
26
- export declare class CombinedAutocompleteProvider implements AutocompleteProvider {
27
- private readonly basePath;
28
- private readonly fdPath;
29
- private readonly cache;
30
- private readonly commandEngine;
31
- private readonly attachmentEngine;
32
- private readonly pathEngine;
33
- private readonly applyStrategy;
34
- constructor(commands?: (SlashCommand | AutocompleteItem)[], basePath?: string, fdPath?: string | null);
35
- getSuggestions(lines: string[], cursorLine: number, cursorCol: number): SuggestionResult | null;
36
- applyCompletion(lines: string[], cursorLine: number, cursorCol: number, item: AutocompleteItem, prefix: string): {
37
- lines: string[];
38
- cursorLine: number;
39
- cursorCol: number;
40
- };
41
- clearCache(): void;
42
- getForceFileSuggestions(lines: string[], cursorLine: number, cursorCol: number): SuggestionResult | null;
43
- shouldTriggerFileCompletion(lines: string[], cursorLine: number, cursorCol: number): boolean;
44
- }
45
- export interface AsyncAutocompleteProvider {
46
- getSuggestionsAsync(lines: string[], cursorLine: number, cursorCol: number): Promise<{
47
- items: AutocompleteItem[];
48
- prefix: string;
49
- } | null>;
50
- }
51
- export declare class AsyncAutocompleteChain implements AsyncAutocompleteProvider {
52
- private readonly providers;
53
- constructor(providers: AsyncAutocompleteProvider[]);
54
- getSuggestionsAsync(lines: string[], cursorLine: number, cursorCol: number): Promise<{
55
- items: AutocompleteItem[];
56
- prefix: string;
57
- } | null>;
58
- }
59
- export {};
@@ -1,38 +0,0 @@
1
- export interface Component {
2
- onMount?(): void;
3
- onUnmount?(): void;
4
- onFocus?(): void;
5
- onBlur?(): void;
6
- handleInput?(data: string): void;
7
- render(width: number): string[];
8
- invalidate(): void;
9
- }
10
- export interface TUI {
11
- requestRender?(): void;
12
- focus?(component: Component | null): void;
13
- }
14
- export type OverlayAnchor = "center" | "top-center" | "bottom-center" | "left-center" | "right-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
15
- export interface OverlayMargin {
16
- left?: number;
17
- right?: number;
18
- top?: number;
19
- bottom?: number;
20
- }
21
- export type SizeValue = number | `${number}%`;
22
- export interface OverlayOptions {
23
- anchor?: OverlayAnchor;
24
- row?: SizeValue;
25
- col?: SizeValue;
26
- offsetX?: number;
27
- offsetY?: number;
28
- margin?: OverlayMargin | number;
29
- width?: SizeValue;
30
- minWidth?: number;
31
- maxHeight?: SizeValue;
32
- visible?: (termWidth: number, termHeight: number) => boolean;
33
- }
34
- export interface OverlayHandle {
35
- isHidden(): boolean;
36
- setHidden(hidden: boolean): void;
37
- hide(): void;
38
- }
@@ -1,100 +0,0 @@
1
- import type { AutocompleteProvider } from "./autocomplete.js";
2
- import type { Component } from "./contracts.js";
3
- /**
4
- * Read-only capabilities of an editor component.
5
- * Consumers that only need to observe state should depend on this type.
6
- */
7
- export interface EditorReadAccess {
8
- /**
9
- * Returns the raw text currently held in the editor buffer.
10
- * Does not include any virtual or expanded markers.
11
- */
12
- getText(): string;
13
- /**
14
- * Returns the text with any inline markers expanded (e.g., paste-mode
15
- * sentinels replaced by their visible representation).
16
- * Falls back to `getText()` when not implemented.
17
- */
18
- getExpandedText?(): string;
19
- }
20
- /**
21
- * Mutation capabilities of an editor component.
22
- * Consumers that drive the editor (set content, trigger history, etc.)
23
- * depend on this type.
24
- */
25
- export interface EditorWriteAccess {
26
- /**
27
- * Replaces the entire editor buffer with the given text.
28
- * The cursor is repositioned to the end of the new content.
29
- */
30
- setText(text: string): void;
31
- /**
32
- * Inserts the given text at the current cursor position,
33
- * pushing existing content to the right.
34
- */
35
- insertTextAtCursor?(text: string): void;
36
- /**
37
- * Pushes the given text string into the editor's history ring
38
- * so it can be recalled with Up / Down arrow navigation.
39
- */
40
- addToHistory?(text: string): void;
41
- }
42
- /**
43
- * Optional visual and autocomplete configuration for an editor component.
44
- */
45
- export interface EditorDisplayConfig {
46
- /**
47
- * ANSI colour-wrap function applied to the editor's border.
48
- * Receives the border characters and must return a styled string.
49
- */
50
- borderColor?: (str: string) => string;
51
- /**
52
- * Sets the number of blank columns added on the left and right
53
- * of the editor's content area.
54
- */
55
- setPaddingX?(padding: number): void;
56
- /**
57
- * Attaches an autocomplete provider that supplies completion candidates
58
- * as the user types.
59
- */
60
- setAutocompleteProvider?(provider: AutocompleteProvider): void;
61
- /**
62
- * Returns an opaque string identifier for this component's keybinding
63
- * scope, used to resolve per-component keybinding overrides.
64
- */
65
- getKeybindingScopeId?(): string;
66
- }
67
- /**
68
- * Event callbacks wired into the editor lifecycle.
69
- */
70
- export interface EditorEventCallbacks {
71
- /**
72
- * Fired when the user commits the current input (e.g., presses Enter).
73
- * Receives the final text value at the moment of submission.
74
- */
75
- onSubmit?: (text: string) => void;
76
- /**
77
- * Fired on every keystroke or programmatic change to the buffer content.
78
- * Receives the updated text after the change has been applied.
79
- */
80
- onChange?: (text: string) => void;
81
- }
82
- /**
83
- * Full interface for a pluggable editor component.
84
- *
85
- * Compose the read, write, display and callback sub-interfaces so that
86
- * extensions (vim mode, emacs mode, custom keybindings, etc.) remain
87
- * compatible with the core application while each concern is independently
88
- * testable.
89
- *
90
- * @example
91
- * ```ts
92
- * class VimEditor implements EditorComponent {
93
- * getText() { return this.buffer; }
94
- * setText(t: string) { this.buffer = t; }
95
- * // ... Component lifecycle methods
96
- * }
97
- * ```
98
- */
99
- export interface EditorComponent extends Component, EditorReadAccess, EditorWriteAccess, EditorDisplayConfig, EditorEventCallbacks {
100
- }
@@ -1,29 +0,0 @@
1
- /**
2
- * Helpers for approximate ("fuzzy") string matching.
3
- *
4
- * A query is considered a match when every one of its characters can be found
5
- * in the target string while preserving their relative order, even if other
6
- * characters sit between them. Each match is also given a numeric score where
7
- * smaller numbers indicate a tighter, more relevant match.
8
- */
9
- export interface FuzzyMatch {
10
- matches: boolean;
11
- score: number;
12
- }
13
- export interface FuzzyScoringConfig {
14
- gapPenalty: number;
15
- consecutiveReward: number;
16
- wordBoundaryReward: number;
17
- lateMatchPenalty: number;
18
- swappedTokenPenalty: number;
19
- }
20
- export interface FuzzyMatcherStrategy {
21
- match(query: string, text: string, config: FuzzyScoringConfig): FuzzyMatch;
22
- }
23
- export declare function fuzzyMatch(query: string, text: string): FuzzyMatch;
24
- /**
25
- * Keep only the items whose text fuzzy-matches the query, ordered so the
26
- * strongest matches come first. The query may contain several whitespace-
27
- * separated tokens; an item is only retained when it matches all of them.
28
- */
29
- export declare function fuzzyFilter<T>(items: T[], query: string, getText: (item: T) => string): T[];
@@ -1,8 +0,0 @@
1
- export { type AutocompleteItem, type AutocompleteProvider, CombinedAutocompleteProvider, type SlashCommand, } from "./autocomplete.js";
2
- export type { EditorComponent } from "./editor-component.js";
3
- export type { Component, OverlayAnchor, OverlayHandle, OverlayMargin, OverlayOptions, SizeValue, TUI } from "./contracts.js";
4
- export type { EditorTheme, MarkdownTheme, SelectListTheme, SettingsListTheme } from "./theme-types.js";
5
- export { type FuzzyMatch, fuzzyFilter, fuzzyMatch } from "./fuzzy.js";
6
- export { DEFAULT_EDITOR_KEYBINDINGS, type EditorAction, type EditorKeybindingsConfig, EditorKeybindingsManager, getEditorKeybindings, setEditorKeybindings, } from "./keybindings.js";
7
- export { isKeyRelease, isKeyRepeat, isKittyProtocolActive, Key, type KeyEventType, type KeyId, matchesKey, parseKey, setKittyProtocolActive, } from "./keys.js";
8
- export { truncateToWidth, visibleWidth, wrapTextWithAnsi } from "./utils.js";
@@ -1,62 +0,0 @@
1
- import { type KeyId } from "./keys.js";
2
- /**
3
- * Names of the bindable behaviors the line editor understands. Each value
4
- * here is a logical action that one or more physical keys may trigger.
5
- */
6
- export type EditorAction = "cursorUp" | "cursorDown" | "cursorLeft" | "cursorRight" | "cursorWordLeft" | "cursorWordRight" | "cursorLineStart" | "cursorLineEnd" | "pageUp" | "pageDown" | "deleteCharBackward" | "deleteCharForward" | "deleteWordBackward" | "deleteWordForward" | "deleteToLineStart" | "deleteToLineEnd" | "newLine" | "submit" | "tab" | "selectUp" | "selectDown" | "selectPageUp" | "selectPageDown" | "selectConfirm" | "selectCancel" | "copy" | "yank" | "yankPop" | "undo" | "expandTools" | "toggleSessionPath" | "toggleSessionSort" | "renameSession" | "deleteSession" | "deleteSessionNoninvasive";
7
- export type { KeyId };
8
- /**
9
- * A mapping from editor actions to the key (or keys) that should fire them.
10
- */
11
- export type EditorKeybindingsConfig = {
12
- [K in EditorAction]?: KeyId | KeyId[];
13
- };
14
- export type KeybindingPreset = "default" | "vim";
15
- export interface KeybindingConflict {
16
- key: string;
17
- actions: EditorAction[];
18
- }
19
- /**
20
- * The keybinding layer applied to every editor before any user overrides.
21
- *
22
- * The table below is organized into category blocks (caret motion, deletion,
23
- * text entry, completion popup, clipboard/kill-ring, history, tool expansion,
24
- * session management). Each block is flattened, in declaration order, into one
25
- * ordered map. The flat order is preserved exactly.
26
- *
27
- * Provenance: bindings derived from GNU readline are marked "[readline]" and
28
- * use readline's chord exactly. Bindings unique to the indus editor are marked
29
- * "[indus-original]" and were picked by this project.
30
- */
31
- export declare const DEFAULT_EDITOR_KEYBINDINGS: Required<EditorKeybindingsConfig>;
32
- export declare const VIM_EDITOR_KEYBINDINGS: Partial<Required<EditorKeybindingsConfig>>;
33
- /**
34
- * Resolves which keys are wired to which editor action, layering presets,
35
- * user config, and per-component overrides on top of one another.
36
- */
37
- export declare class EditorKeybindingsManager {
38
- private readonly registry;
39
- private componentOverrides;
40
- constructor(config?: EditorKeybindingsConfig, preset?: KeybindingPreset);
41
- private rebuildRegistry;
42
- private resolveKeys;
43
- /**
44
- * Report whether the given raw key data triggers the named action.
45
- */
46
- matches(data: string, action: EditorAction, componentId?: string): boolean;
47
- /**
48
- * List every key currently wired to the given action.
49
- */
50
- getKeys(action: EditorAction): KeyId[];
51
- registerAction(action: EditorAction, keys: KeyId | KeyId[]): void;
52
- getRegisteredActions(): EditorAction[];
53
- /**
54
- * Swap in a fresh config (and optional preset), rebuilding the bindings.
55
- */
56
- setConfig(config: EditorKeybindingsConfig, preset?: KeybindingPreset): void;
57
- setComponentOverride(componentId: string, config: EditorKeybindingsConfig): void;
58
- clearComponentOverride(componentId: string): void;
59
- detectConflicts(): KeybindingConflict[];
60
- }
61
- export declare function getEditorKeybindings(): EditorKeybindingsManager;
62
- export declare function setEditorKeybindings(manager: EditorKeybindingsManager): void;
@@ -1,171 +0,0 @@
1
- /**
2
- * Terminal keyboard input decoding.
3
- *
4
- * This module understands two flavours of input: the older, traditional
5
- * escape-sequence encodings as well as the newer Kitty keyboard protocol
6
- * (docs at https://sw.kovidgoyal.net/kitty/keyboard-protocol/).
7
- *
8
- * Punctuation/symbol keys are recognized too. Be aware that a handful of
9
- * ctrl+symbol presses collide with plain ASCII control codes — ctrl+[ , for
10
- * instance, is indistinguishable from ESC. Despite that overlap those keys are
11
- * still usable in ctrl+shift combinations. The legacy-mapping background is
12
- * described at
13
- * https://sw.kovidgoyal.net/kitty/keyboard-protocol/#legacy-ctrl-mapping-of-ascii-keys.
14
- *
15
- * Public surface:
16
- * - matchesKey(data, keyId): test whether some raw input equals a given key id
17
- * - parseKey(data): decode raw input back into its key id, if recognized
18
- * - Key: a builder that yields strongly-typed key ids
19
- * - setKittyProtocolActive(active): update the shared Kitty-protocol flag
20
- * - isKittyProtocolActive(): read the shared Kitty-protocol flag
21
- */
22
- /**
23
- * Record whether the Kitty keyboard protocol is in effect. The terminal layer
24
- * flips this on once it has confirmed the protocol is supported.
25
- */
26
- export declare function setKittyProtocolActive(active: boolean): void;
27
- /**
28
- * Report the current value of the shared Kitty-protocol flag.
29
- */
30
- export declare function isKittyProtocolActive(): boolean;
31
- declare const LETTER_VALUES: readonly ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"];
32
- type Letter = (typeof LETTER_VALUES)[number];
33
- declare const SYMBOL_VALUES: readonly ["`", "-", "=", "[", "]", "\\", ";", "'", ",", ".", "/", "!", "@", "#", "$", "%", "^", "&", "*", "(", ")", "_", "+", "|", "~", "{", "}", ":", "<", ">", "?"];
34
- type SymbolKey = (typeof SYMBOL_VALUES)[number];
35
- declare const SPECIAL_KEY_VALUES: readonly ["escape", "esc", "enter", "return", "tab", "space", "backspace", "delete", "insert", "clear", "home", "end", "pageUp", "pageDown", "up", "down", "left", "right", "f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9", "f10", "f11", "f12"];
36
- type SpecialKey = (typeof SPECIAL_KEY_VALUES)[number];
37
- type BaseKey = Letter | SymbolKey | SpecialKey;
38
- /**
39
- * Every legal key-identifier string, expressed as a union. Using a literal
40
- * union both powers editor autocomplete and rejects malformed ids during
41
- * type-checking.
42
- */
43
- export type KeyId = BaseKey | `ctrl+${BaseKey}` | `shift+${BaseKey}` | `alt+${BaseKey}` | `ctrl+shift+${BaseKey}` | `shift+ctrl+${BaseKey}` | `ctrl+alt+${BaseKey}` | `alt+ctrl+${BaseKey}` | `shift+alt+${BaseKey}` | `alt+shift+${BaseKey}` | `ctrl+shift+alt+${BaseKey}` | `ctrl+alt+shift+${BaseKey}` | `shift+ctrl+alt+${BaseKey}` | `shift+alt+ctrl+${BaseKey}` | `alt+ctrl+shift+${BaseKey}` | `alt+shift+ctrl+${BaseKey}`;
44
- /**
45
- * Convenience builder that produces well-typed key ids with editor hints.
46
- *
47
- * Examples:
48
- * - Named keys: Key.escape, Key.enter, Key.tab, ...
49
- * - Punctuation: Key.backtick, Key.comma, Key.period, ...
50
- * - One modifier: Key.ctrl("c"), Key.alt("x")
51
- * - Stacked modifiers: Key.ctrlShift("p"), Key.ctrlAlt("x")
52
- */
53
- export declare const Key: {
54
- readonly ctrl: <K extends BaseKey>(key: K) => `ctrl+${K}`;
55
- readonly shift: <K extends BaseKey>(key: K) => `shift+${K}`;
56
- readonly alt: <K extends BaseKey>(key: K) => `alt+${K}`;
57
- readonly ctrlShift: <K extends BaseKey>(key: K) => `ctrl+shift+${K}`;
58
- readonly shiftCtrl: <K extends BaseKey>(key: K) => `shift+ctrl+${K}`;
59
- readonly ctrlAlt: <K extends BaseKey>(key: K) => `ctrl+alt+${K}`;
60
- readonly altCtrl: <K extends BaseKey>(key: K) => `alt+ctrl+${K}`;
61
- readonly shiftAlt: <K extends BaseKey>(key: K) => `shift+alt+${K}`;
62
- readonly altShift: <K extends BaseKey>(key: K) => `alt+shift+${K}`;
63
- readonly ctrlShiftAlt: <K extends BaseKey>(key: K) => `ctrl+shift+alt+${K}`;
64
- readonly backtick: "`";
65
- readonly hyphen: "-";
66
- readonly equals: "=";
67
- readonly leftbracket: "[";
68
- readonly rightbracket: "]";
69
- readonly backslash: "\\";
70
- readonly semicolon: ";";
71
- readonly quote: "'";
72
- readonly comma: ",";
73
- readonly period: ".";
74
- readonly slash: "/";
75
- readonly exclamation: "!";
76
- readonly at: "@";
77
- readonly hash: "#";
78
- readonly dollar: "$";
79
- readonly percent: "%";
80
- readonly caret: "^";
81
- readonly ampersand: "&";
82
- readonly asterisk: "*";
83
- readonly leftparen: "(";
84
- readonly rightparen: ")";
85
- readonly underscore: "_";
86
- readonly plus: "+";
87
- readonly pipe: "|";
88
- readonly tilde: "~";
89
- readonly leftbrace: "{";
90
- readonly rightbrace: "}";
91
- readonly colon: ":";
92
- readonly lessthan: "<";
93
- readonly greaterthan: ">";
94
- readonly question: "?";
95
- readonly escape: "escape";
96
- readonly esc: "esc";
97
- readonly enter: "enter";
98
- readonly return: "return";
99
- readonly tab: "tab";
100
- readonly space: "space";
101
- readonly backspace: "backspace";
102
- readonly delete: "delete";
103
- readonly insert: "insert";
104
- readonly clear: "clear";
105
- readonly home: "home";
106
- readonly end: "end";
107
- readonly pageUp: "pageUp";
108
- readonly pageDown: "pageDown";
109
- readonly up: "up";
110
- readonly down: "down";
111
- readonly left: "left";
112
- readonly right: "right";
113
- readonly f1: "f1";
114
- readonly f2: "f2";
115
- readonly f3: "f3";
116
- readonly f4: "f4";
117
- readonly f5: "f5";
118
- readonly f6: "f6";
119
- readonly f7: "f7";
120
- readonly f8: "f8";
121
- readonly f9: "f9";
122
- readonly f10: "f10";
123
- readonly f11: "f11";
124
- readonly f12: "f12";
125
- };
126
- /**
127
- * The kind of key event the Kitty protocol reports when flag 2 is enabled.
128
- * Numerically: 1 means press, 2 means auto-repeat, 3 means release.
129
- */
130
- export type KeyEventType = "press" | "repeat" | "release";
131
- /**
132
- * Tell whether the supplied input represents a key being released. This is
133
- * only relevant while the Kitty protocol is running with flag 2 turned on.
134
- */
135
- export declare function isKeyRelease(data: string): boolean;
136
- /**
137
- * Tell whether the supplied input represents an auto-repeated key. As with
138
- * releases, this only carries meaning when the Kitty protocol's flag 2 is on.
139
- */
140
- export declare function isKeyRepeat(data: string): boolean;
141
- export declare function normalizeKeyId(keyId: string): string;
142
- export declare class KeyValidator {
143
- normalize(keyId: string): string;
144
- isValid(keyId: string): boolean;
145
- }
146
- /**
147
- * Decide whether raw terminal input corresponds to a particular key id.
148
- *
149
- * Identifiers it understands:
150
- * - Named keys such as "escape", "tab", "enter", "backspace", "delete", "home", "end", "space"
151
- * - The four arrows: "up", "down", "left", "right"
152
- * - Ctrl forms like "ctrl+c" or "ctrl+z"
153
- * - Shift forms like "shift+tab" or "shift+enter"
154
- * - Alt forms like "alt+enter" or "alt+backspace"
155
- * - Multi-modifier forms like "shift+ctrl+p" or "ctrl+alt+x"
156
- *
157
- * The Key builder gives you typed equivalents: Key.ctrl("c"), Key.escape, Key.ctrlShift("p").
158
- *
159
- * @param data - the bytes the terminal delivered
160
- * @param keyId - the identifier to test against (e.g. "ctrl+c", "escape", Key.ctrl("c"))
161
- */
162
- export declare function matchesKey(data: string, keyId: KeyId): boolean;
163
- /**
164
- * Decode raw terminal input back into its key id, or undefined when nothing
165
- * matches.
166
- *
167
- * @param data - the bytes the terminal delivered
168
- * @returns the matching key id (such as "ctrl+c"), or undefined
169
- */
170
- export declare function parseKey(data: string): string | undefined;
171
- export {};
@@ -1,36 +0,0 @@
1
- export interface SelectListTheme {
2
- selectedText: (text: string) => string;
3
- selectedPrefix: (text: string) => string;
4
- noMatch: (text: string) => string;
5
- description: (text: string) => string;
6
- scrollInfo: (text: string) => string;
7
- }
8
- export interface EditorTheme {
9
- selectList: SelectListTheme;
10
- borderColor: (str: string) => string;
11
- }
12
- export interface MarkdownTheme {
13
- heading: (text: string) => string;
14
- bold: (text: string) => string;
15
- italic: (text: string) => string;
16
- strikethrough: (text: string) => string;
17
- underline: (text: string) => string;
18
- link: (text: string) => string;
19
- linkUrl: (text: string) => string;
20
- listBullet: (text: string) => string;
21
- quote: (text: string) => string;
22
- quoteBorder: (text: string) => string;
23
- code: (text: string) => string;
24
- codeBlock: (text: string) => string;
25
- codeBlockBorder: (text: string) => string;
26
- hr: (text: string) => string;
27
- highlightCode?: (code: string, lang?: string) => string[];
28
- codeBlockIndent?: string;
29
- }
30
- export interface SettingsListTheme {
31
- cursor: string;
32
- label: (text: string, selected: boolean) => string;
33
- value: (text: string, selected: boolean) => string;
34
- hint: (text: string) => string;
35
- description: (text: string) => string;
36
- }