indusagi-coding-agent 0.2.4 → 0.2.5

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 (266) hide show
  1. package/LICENSE +661 -0
  2. package/README.md +95 -1
  3. package/dist/entry.js +1559 -1100
  4. package/dist/guardrails.js +26 -509
  5. package/dist/index.js +1581 -1155
  6. package/package.json +8 -7
  7. package/dist/types/addons/addons.test.d.ts +0 -21
  8. package/dist/types/addons/contract.d.ts +0 -640
  9. package/dist/types/addons/dispatch/event-dispatcher.d.ts +0 -140
  10. package/dist/types/addons/dispatch/index.d.ts +0 -23
  11. package/dist/types/addons/dispatch/tool-interceptor.d.ts +0 -128
  12. package/dist/types/addons/host.d.ts +0 -246
  13. package/dist/types/addons/index.d.ts +0 -51
  14. package/dist/types/addons/manifest.d.ts +0 -56
  15. package/dist/types/addons/sandbox.d.ts +0 -103
  16. package/dist/types/addons/surface.d.ts +0 -42
  17. package/dist/types/boot/auth-vault.d.ts +0 -29
  18. package/dist/types/boot/boot.d.ts +0 -26
  19. package/dist/types/boot/boot.test.d.ts +0 -15
  20. package/dist/types/boot/contract.d.ts +0 -236
  21. package/dist/types/boot/heap.d.ts +0 -31
  22. package/dist/types/boot/index.d.ts +0 -20
  23. package/dist/types/boot/invocation.d.ts +0 -40
  24. package/dist/types/boot/invocation.test.d.ts +0 -8
  25. package/dist/types/boot/runners/addon-wiring.d.ts +0 -103
  26. package/dist/types/boot/runners/addon-wiring.test.d.ts +0 -19
  27. package/dist/types/boot/runners/checkpoint.d.ts +0 -133
  28. package/dist/types/boot/runners/checkpoint.test.d.ts +0 -12
  29. package/dist/types/boot/runners/delegate-runner.d.ts +0 -109
  30. package/dist/types/boot/runners/delegate-runner.test.d.ts +0 -13
  31. package/dist/types/boot/runners/index.d.ts +0 -13
  32. package/dist/types/boot/runners/link-runner.d.ts +0 -20
  33. package/dist/types/boot/runners/memdir.d.ts +0 -103
  34. package/dist/types/boot/runners/memdir.test.d.ts +0 -12
  35. package/dist/types/boot/runners/oneshot-runner.d.ts +0 -19
  36. package/dist/types/boot/runners/read-state.d.ts +0 -82
  37. package/dist/types/boot/runners/read-state.test.d.ts +0 -10
  38. package/dist/types/boot/runners/registry.d.ts +0 -30
  39. package/dist/types/boot/runners/repl-runner.d.ts +0 -19
  40. package/dist/types/boot/runners/server-mode.d.ts +0 -71
  41. package/dist/types/boot/runners/session-persist.test.d.ts +0 -10
  42. package/dist/types/boot/runners/session.d.ts +0 -88
  43. package/dist/types/boot/runners/session.test.d.ts +0 -15
  44. package/dist/types/boot/server-token.d.ts +0 -97
  45. package/dist/types/boot/stages.d.ts +0 -92
  46. package/dist/types/boot/upgrade/apply.d.ts +0 -45
  47. package/dist/types/boot/upgrade/index.d.ts +0 -13
  48. package/dist/types/boot/upgrade/upgrades.d.ts +0 -126
  49. package/dist/types/briefing/briefing.test.d.ts +0 -15
  50. package/dist/types/briefing/compose.d.ts +0 -37
  51. package/dist/types/briefing/context-docs.d.ts +0 -38
  52. package/dist/types/briefing/context-docs.test.d.ts +0 -18
  53. package/dist/types/briefing/contract.d.ts +0 -686
  54. package/dist/types/briefing/index.d.ts +0 -29
  55. package/dist/types/briefing/macros.d.ts +0 -206
  56. package/dist/types/briefing/skills.d.ts +0 -67
  57. package/dist/types/capability-deck/bridge-ledger/index.d.ts +0 -25
  58. package/dist/types/capability-deck/bridge-ledger/key.d.ts +0 -65
  59. package/dist/types/capability-deck/bridge-ledger/ledger.d.ts +0 -129
  60. package/dist/types/capability-deck/bridge-ledger/network.d.ts +0 -115
  61. package/dist/types/capability-deck/builtin-bridge.d.ts +0 -114
  62. package/dist/types/capability-deck/capability-deck.test.d.ts +0 -18
  63. package/dist/types/capability-deck/cards/bg-process-card.d.ts +0 -99
  64. package/dist/types/capability-deck/cards/index.d.ts +0 -37
  65. package/dist/types/capability-deck/cards/memory-card.d.ts +0 -68
  66. package/dist/types/capability-deck/cards/plan-file.d.ts +0 -56
  67. package/dist/types/capability-deck/cards/plan-tools.d.ts +0 -97
  68. package/dist/types/capability-deck/cards/plan-tools.test.d.ts +0 -9
  69. package/dist/types/capability-deck/cards/saas-card.d.ts +0 -78
  70. package/dist/types/capability-deck/cards/task-card.d.ts +0 -106
  71. package/dist/types/capability-deck/cards/todo-card.d.ts +0 -78
  72. package/dist/types/capability-deck/cards/workflow-card.d.ts +0 -55
  73. package/dist/types/capability-deck/cards/workflow-card.test.d.ts +0 -12
  74. package/dist/types/capability-deck/checkpoint.int.test.d.ts +0 -25
  75. package/dist/types/capability-deck/contract.d.ts +0 -318
  76. package/dist/types/capability-deck/index.d.ts +0 -46
  77. package/dist/types/capability-deck/manifest.d.ts +0 -60
  78. package/dist/types/capability-deck/provision.d.ts +0 -76
  79. package/dist/types/capability-deck/read-edit-gate.int.test.d.ts +0 -21
  80. package/dist/types/channels/channels.test.d.ts +0 -15
  81. package/dist/types/channels/contract.d.ts +0 -489
  82. package/dist/types/channels/framer.d.ts +0 -49
  83. package/dist/types/channels/index.d.ts +0 -24
  84. package/dist/types/channels/link/dialog.d.ts +0 -138
  85. package/dist/types/channels/link/driver.d.ts +0 -81
  86. package/dist/types/channels/link/index.d.ts +0 -13
  87. package/dist/types/channels/link/server.d.ts +0 -70
  88. package/dist/types/channels/oneshot.d.ts +0 -37
  89. package/dist/types/channels/ops.d.ts +0 -89
  90. package/dist/types/channels/session-ops.d.ts +0 -80
  91. package/dist/types/conductor/bash-guard.d.ts +0 -106
  92. package/dist/types/conductor/bash-guard.test.d.ts +0 -17
  93. package/dist/types/conductor/catalog/catalog.d.ts +0 -87
  94. package/dist/types/conductor/catalog/index.d.ts +0 -14
  95. package/dist/types/conductor/catalog/matcher.d.ts +0 -47
  96. package/dist/types/conductor/conductor.d.ts +0 -213
  97. package/dist/types/conductor/conductor.test.d.ts +0 -10
  98. package/dist/types/conductor/contract.d.ts +0 -838
  99. package/dist/types/conductor/diagnostics.d.ts +0 -183
  100. package/dist/types/conductor/diagnostics.test.d.ts +0 -10
  101. package/dist/types/conductor/index.d.ts +0 -26
  102. package/dist/types/conductor/permission-gate.integration.test.d.ts +0 -22
  103. package/dist/types/conductor/permission-wiring.test.d.ts +0 -14
  104. package/dist/types/conductor/permissions.d.ts +0 -287
  105. package/dist/types/conductor/permissions.test.d.ts +0 -12
  106. package/dist/types/conductor/plan-mode.integration.test.d.ts +0 -23
  107. package/dist/types/conductor/post-edit-diagnostics.test.d.ts +0 -18
  108. package/dist/types/conductor/quota-error.d.ts +0 -35
  109. package/dist/types/conductor/signal-hub/hub.d.ts +0 -83
  110. package/dist/types/conductor/signal-hub/index.d.ts +0 -19
  111. package/dist/types/conductor/signal-hub/translate.d.ts +0 -77
  112. package/dist/types/conductor/skill-parse/index.d.ts +0 -10
  113. package/dist/types/conductor/skill-parse/parse.d.ts +0 -67
  114. package/dist/types/conductor/submit.test.d.ts +0 -28
  115. package/dist/types/conductor/transcript-store/index.d.ts +0 -16
  116. package/dist/types/conductor/transcript-store/serialize.d.ts +0 -106
  117. package/dist/types/conductor/transcript-store/serialize.test.d.ts +0 -10
  118. package/dist/types/conductor/transcript-store/store.d.ts +0 -188
  119. package/dist/types/console/auth-status.d.ts +0 -28
  120. package/dist/types/console/components/AgentsView.d.ts +0 -41
  121. package/dist/types/console/components/BackgroundAgents.d.ts +0 -63
  122. package/dist/types/console/components/BackgroundAgents.test.d.ts +0 -8
  123. package/dist/types/console/components/Banner.d.ts +0 -110
  124. package/dist/types/console/components/Composer.d.ts +0 -37
  125. package/dist/types/console/components/StatusBar.d.ts +0 -42
  126. package/dist/types/console/components/TerminalConsole.d.ts +0 -27
  127. package/dist/types/console/components/WorkingIndicator.d.ts +0 -44
  128. package/dist/types/console/components/WorkingIndicator.test.d.ts +0 -9
  129. package/dist/types/console/components/banner-sweep.d.ts +0 -55
  130. package/dist/types/console/components/banner.test.d.ts +0 -9
  131. package/dist/types/console/components/welcome.d.ts +0 -115
  132. package/dist/types/console/components/welcome.test.d.ts +0 -9
  133. package/dist/types/console/console.test.d.ts +0 -19
  134. package/dist/types/console/contract.d.ts +0 -611
  135. package/dist/types/console/index.d.ts +0 -34
  136. package/dist/types/console/input/complete.d.ts +0 -120
  137. package/dist/types/console/input/dir-reader.d.ts +0 -28
  138. package/dist/types/console/input/index.d.ts +0 -24
  139. package/dist/types/console/input/input.test.d.ts +0 -14
  140. package/dist/types/console/input/keymap.d.ts +0 -193
  141. package/dist/types/console/input/paste.d.ts +0 -183
  142. package/dist/types/console/mount.d.ts +0 -53
  143. package/dist/types/console/overlays/approval-queue.d.ts +0 -88
  144. package/dist/types/console/overlays/approval.d.ts +0 -104
  145. package/dist/types/console/overlays/approval.test.d.ts +0 -17
  146. package/dist/types/console/overlays/auth.d.ts +0 -31
  147. package/dist/types/console/overlays/boards.d.ts +0 -55
  148. package/dist/types/console/overlays/host.d.ts +0 -45
  149. package/dist/types/console/overlays/index.d.ts +0 -15
  150. package/dist/types/console/overlays/pickers.d.ts +0 -37
  151. package/dist/types/console/overlays/sessions.d.ts +0 -29
  152. package/dist/types/console/reducer.d.ts +0 -51
  153. package/dist/types/console/slash/builtins.d.ts +0 -33
  154. package/dist/types/console/slash/commands/dynamic.d.ts +0 -57
  155. package/dist/types/console/slash/commands/dynamic.test.d.ts +0 -9
  156. package/dist/types/console/slash/commands/integrations.d.ts +0 -28
  157. package/dist/types/console/slash/commands/integrations.test.d.ts +0 -18
  158. package/dist/types/console/slash/commands/shared.d.ts +0 -72
  159. package/dist/types/console/slash/commands/transcript.d.ts +0 -24
  160. package/dist/types/console/slash/commands/transcript.test.d.ts +0 -10
  161. package/dist/types/console/slash/commands/workbench.d.ts +0 -21
  162. package/dist/types/console/slash/commands/workbench.test.d.ts +0 -10
  163. package/dist/types/console/slash/index.d.ts +0 -34
  164. package/dist/types/console/slash/registry.d.ts +0 -90
  165. package/dist/types/console/slash/resolve.d.ts +0 -109
  166. package/dist/types/console/slash/slash.test.d.ts +0 -18
  167. package/dist/types/console/startup.d.ts +0 -119
  168. package/dist/types/console/theme/adapter.d.ts +0 -79
  169. package/dist/types/console/theme/index.d.ts +0 -18
  170. package/dist/types/console/theme/palette.d.ts +0 -77
  171. package/dist/types/console/theme/resolve.d.ts +0 -45
  172. package/dist/types/console/theme/theme.test.d.ts +0 -16
  173. package/dist/types/console/theme/tokens.d.ts +0 -62
  174. package/dist/types/entry.d.ts +0 -17
  175. package/dist/types/guardrails.d.ts +0 -33
  176. package/dist/types/index.d.ts +0 -24
  177. package/dist/types/insight/channel.d.ts +0 -45
  178. package/dist/types/insight/contract.d.ts +0 -411
  179. package/dist/types/insight/index.d.ts +0 -26
  180. package/dist/types/insight/insight.test.d.ts +0 -17
  181. package/dist/types/insight/recorder.d.ts +0 -63
  182. package/dist/types/insight/redaction.d.ts +0 -44
  183. package/dist/types/insight/replay.d.ts +0 -77
  184. package/dist/types/insight/sampling.d.ts +0 -84
  185. package/dist/types/insight/serialize.d.ts +0 -54
  186. package/dist/types/insight/sinks/console.d.ts +0 -36
  187. package/dist/types/insight/sinks/file.d.ts +0 -37
  188. package/dist/types/insight/sinks/index.d.ts +0 -16
  189. package/dist/types/insight/sinks/stream.d.ts +0 -53
  190. package/dist/types/kit/clipboard-image.d.ts +0 -40
  191. package/dist/types/kit/external-editor.d.ts +0 -35
  192. package/dist/types/kit/image.d.ts +0 -102
  193. package/dist/types/kit/index.d.ts +0 -29
  194. package/dist/types/kit/kit.test.d.ts +0 -13
  195. package/dist/types/kit/shell.d.ts +0 -50
  196. package/dist/types/kit/tool-fetch.d.ts +0 -165
  197. package/dist/types/launch/catalog.d.ts +0 -51
  198. package/dist/types/launch/contract.d.ts +0 -387
  199. package/dist/types/launch/credentials.d.ts +0 -112
  200. package/dist/types/launch/index.d.ts +0 -28
  201. package/dist/types/launch/invocation/attachments.d.ts +0 -72
  202. package/dist/types/launch/invocation/flags.d.ts +0 -59
  203. package/dist/types/launch/invocation/index.d.ts +0 -23
  204. package/dist/types/launch/invocation/read.d.ts +0 -52
  205. package/dist/types/launch/invocation/usage.d.ts +0 -25
  206. package/dist/types/launch/launch.test.d.ts +0 -20
  207. package/dist/types/launch/login.d.ts +0 -68
  208. package/dist/types/launch/oauth.d.ts +0 -101
  209. package/dist/types/launch/oauth.test.d.ts +0 -20
  210. package/dist/types/launch/packages.d.ts +0 -75
  211. package/dist/types/launch/packages.test.d.ts +0 -15
  212. package/dist/types/launch/pickers.d.ts +0 -97
  213. package/dist/types/runtime-bridge/bridges/_drive.d.ts +0 -74
  214. package/dist/types/runtime-bridge/bridges/builtins.d.ts +0 -77
  215. package/dist/types/runtime-bridge/bridges/claude-cli.d.ts +0 -37
  216. package/dist/types/runtime-bridge/bridges/codex-cli.d.ts +0 -27
  217. package/dist/types/runtime-bridge/bridges/index.d.ts +0 -15
  218. package/dist/types/runtime-bridge/bridges/indusagi-cli.d.ts +0 -36
  219. package/dist/types/runtime-bridge/broker.d.ts +0 -182
  220. package/dist/types/runtime-bridge/contract.d.ts +0 -436
  221. package/dist/types/runtime-bridge/index.d.ts +0 -21
  222. package/dist/types/runtime-bridge/runtime-bridge.test.d.ts +0 -17
  223. package/dist/types/runtime-bridge/sink.d.ts +0 -59
  224. package/dist/types/sessions/contract.d.ts +0 -79
  225. package/dist/types/sessions/index.d.ts +0 -11
  226. package/dist/types/sessions/library.d.ts +0 -95
  227. package/dist/types/sessions/sessions.test.d.ts +0 -11
  228. package/dist/types/settings/contract.d.ts +0 -175
  229. package/dist/types/settings/index.d.ts +0 -13
  230. package/dist/types/settings/manager.d.ts +0 -109
  231. package/dist/types/settings/settings.test.d.ts +0 -16
  232. package/dist/types/transcript-export/index.d.ts +0 -20
  233. package/dist/types/transcript-export/publish.d.ts +0 -81
  234. package/dist/types/transcript-export/sgr.d.ts +0 -90
  235. package/dist/types/transcript-export/template.d.ts +0 -64
  236. package/dist/types/transcript-export/theme-bridge.d.ts +0 -99
  237. package/dist/types/transcript-export/transcript-export.test.d.ts +0 -16
  238. package/dist/types/window-budget/budget/estimate.d.ts +0 -47
  239. package/dist/types/window-budget/budget/gate.d.ts +0 -37
  240. package/dist/types/window-budget/budget/index.d.ts +0 -14
  241. package/dist/types/window-budget/budget/slice.d.ts +0 -38
  242. package/dist/types/window-budget/condenser.d.ts +0 -73
  243. package/dist/types/window-budget/contract.d.ts +0 -182
  244. package/dist/types/window-budget/index.d.ts +0 -17
  245. package/dist/types/window-budget/microcompact.d.ts +0 -68
  246. package/dist/types/window-budget/microcompact.test.d.ts +0 -16
  247. package/dist/types/window-budget/rehydrate.d.ts +0 -56
  248. package/dist/types/window-budget/summarize/condense.d.ts +0 -76
  249. package/dist/types/window-budget/summarize/index.d.ts +0 -12
  250. package/dist/types/window-budget/summarize/prompt.d.ts +0 -56
  251. package/dist/types/window-budget/window-budget.test.d.ts +0 -18
  252. package/dist/types/workflow-engine/agent-runner.d.ts +0 -124
  253. package/dist/types/workflow-engine/agent-runner.test.d.ts +0 -8
  254. package/dist/types/workflow-engine/display.d.ts +0 -148
  255. package/dist/types/workflow-engine/display.test.d.ts +0 -1
  256. package/dist/types/workflow-engine/engine.d.ts +0 -183
  257. package/dist/types/workflow-engine/engine.test.d.ts +0 -1
  258. package/dist/types/workflow-engine/index.d.ts +0 -21
  259. package/dist/types/workflow-engine/parse.d.ts +0 -64
  260. package/dist/types/workflow-engine/parse.test.d.ts +0 -1
  261. package/dist/types/workflow-engine/structured-output.d.ts +0 -51
  262. package/dist/types/workflow-engine/structured-output.test.d.ts +0 -1
  263. package/dist/types/workspace/brand.d.ts +0 -26
  264. package/dist/types/workspace/index.d.ts +0 -11
  265. package/dist/types/workspace/locator.d.ts +0 -50
  266. package/dist/types/workspace/runtime-detect.d.ts +0 -56
@@ -1,77 +0,0 @@
1
- /**
2
- * Theme palettes — the console's own re-derived accent ramps.
3
- *
4
- * This module owns the two raw {@link ThemePalette} values the console ships
5
- * with, one per {@link ThemeScheme}. A palette is the *source* nine-stop ramp a
6
- * scheme is built from: three accent hues (a cool primary, a warm secondary, a
7
- * muted support tertiary), a three-stop neutral text gradient (ink/body/muted),
8
- * and the three status hues (affirm/caution/alarm). Everything the console
9
- * renders is computed from these stops by the token derivation step — no module
10
- * downstream of here writes a literal hex.
11
- *
12
- * The hex values are an original ramp authored for this console. The cool
13
- * primary is a desaturated spring-green/teal, the warm secondary a tangerine
14
- * amber, and the support tertiary a soft periwinkle; the neutral gradient is a
15
- * cool slate. The `daylight` variant re-derives the same roles at higher
16
- * saturation / lower luminance so they read on a bright terminal background.
17
- * None of these stops reuse an upstream accent — they were picked fresh against
18
- * a contrast target for each role.
19
- */
20
- import type { ThemePalette, ThemeScheme } from "../contract";
21
- /**
22
- * The dark-terminal ramp.
23
- *
24
- * Cool spring-teal primary against a cool-slate neutral gradient, with a warm
25
- * amber secondary for contrast accents and a soft periwinkle support tone.
26
- */
27
- export declare const MIDNIGHT_PALETTE: ThemePalette;
28
- /**
29
- * The light-terminal ramp.
30
- *
31
- * The same role assignments re-derived deeper and more saturated so each hue
32
- * keeps its contrast against a bright background; the neutral gradient inverts
33
- * to a dark-on-light slate.
34
- */
35
- export declare const DAYLIGHT_PALETTE: ThemePalette;
36
- /**
37
- * The "IndusCode Saffron" dark-terminal ramp — the brand scheme.
38
- *
39
- * The console's signature look: a warm saffron primary (borders, headings, the
40
- * brand wordmark) against a cream neutral gradient, with a cool teal secondary
41
- * for the interactive accents (the prompt caret, chips, bullets) — the two hues
42
- * the IndusCode masthead is built from. The status hues stay warm-leaning so the
43
- * whole scheme reads as one saffron identity rather than a recoloured midnight.
44
- */
45
- export declare const SAFFRON_PALETTE: ThemePalette;
46
- /**
47
- * The dark-terminal color-blind-safe ramp.
48
- *
49
- * A clone of {@link MIDNIGHT_PALETTE} that re-derives the three *status* hues so
50
- * a red-green color-blind user (deuteran/protan, ~8% of men) can tell success
51
- * from failure without relying on the red-green axis. Success moves off green
52
- * onto a vivid blue (`affirm → #4aa3ff`); failure stays red but is deepened to a
53
- * darker tone (`alarm → #c83232`) so it sits well below the bright blue in
54
- * lightness, and the amber warning is nudged brighter — so the three status
55
- * tones separate by *lightness*, not hue alone. The three accent hues and the
56
- * neutral gradient are carried over unchanged from the base midnight ramp — only
57
- * the status stops move, so the overall look stays the midnight scheme.
58
- */
59
- export declare const MIDNIGHT_CB_PALETTE: ThemePalette;
60
- /**
61
- * The light-terminal color-blind-safe ramp.
62
- *
63
- * The daylight counterpart of {@link MIDNIGHT_CB_PALETTE}: clones
64
- * {@link DAYLIGHT_PALETTE} and remaps success to a deeper blue tuned for a
65
- * bright background (`affirm → #1f6fd6`), deepens the red alarm
66
- * (`alarm → #b02622`) for lightness separation from that blue, and darkens the
67
- * amber warning so the three status tones stay separable by lightness on a light
68
- * terminal too.
69
- */
70
- export declare const DAYLIGHT_CB_PALETTE: ThemePalette;
71
- /**
72
- * The raw ramp for each scheme, keyed by {@link ThemeScheme}.
73
- *
74
- * The token derivation step reads from this table; the resolver returns the
75
- * scheme whose palette it expanded.
76
- */
77
- export declare const PALETTES: Readonly<Record<ThemeScheme, ThemePalette>>;
@@ -1,45 +0,0 @@
1
- /**
2
- * Theme resolution — assemble the fully-resolved {@link ConsoleTheme} for each
3
- * scheme and expose the picker entry points.
4
- *
5
- * This is the top of the theme engine. It runs the pipeline once per scheme at
6
- * module load:
7
- *
8
- * palette ──deriveTokens──▶ tokens ──themeAdapter──▶ framework adapter
9
- * └──────────────────────────┴───────────────────────────┘
10
- * ConsoleTheme
11
- *
12
- * The two assembled themes are frozen into {@link THEMES}; {@link resolveTheme}
13
- * is the single sanctioned way the surface obtains the theme for a scheme name.
14
- * Because the heavy work (chalk adapter construction) happens here at the
15
- * config-load boundary, the render path only ever reads an already-built
16
- * {@link ConsoleTheme} — it never re-derives colours.
17
- */
18
- import { type ConsoleTheme, type ThemeScheme } from "../contract";
19
- /**
20
- * The built-in themes, fully resolved and keyed by {@link ThemeScheme}.
21
- *
22
- * Assembled once at load time from {@link PALETTES}. This is the table the
23
- * theme picker lists and {@link resolveTheme} reads; it is the console's
24
- * complete shipped theme set.
25
- */
26
- export declare const THEMES: Readonly<Record<ThemeScheme, ConsoleTheme>>;
27
- /**
28
- * Resolve a scheme name to its fully-built {@link ConsoleTheme}.
29
- *
30
- * The single entry point the surface and the loader use to turn a scheme name
31
- * (from settings, a slash argument, or the {@link DEFAULT_SCHEME}) into a theme.
32
- * An unrecognised or absent name falls back to {@link DEFAULT_SCHEME} rather
33
- * than throwing, so a corrupt preference never blanks the console.
34
- *
35
- * @param scheme a candidate scheme name, possibly invalid or undefined
36
- * @returns the resolved theme for that scheme, or the default theme
37
- */
38
- export declare function resolveTheme(scheme?: string | null): ConsoleTheme;
39
- /**
40
- * The schemes the console offers, in picker order.
41
- *
42
- * Derived from {@link THEMES} so adding a scheme to the table adds it to the
43
- * picker with no second list to update.
44
- */
45
- export declare const THEME_SCHEMES: readonly ThemeScheme[];
@@ -1,16 +0,0 @@
1
- /**
2
- * Theme engine — pure behavioural tests.
3
- *
4
- * Four concerns, all exercised without mounting Ink:
5
- * 1. The two ramps are valid six-digit hex and structurally complete.
6
- * 2. Token derivation is total and binds every semantic role to a ramp stop.
7
- * 3. The framework-key projection covers every key the shipped react-ink
8
- * components request, sourced from the right token role.
9
- * 4. The resolver returns the right theme per scheme and falls back to the
10
- * default for any unrecognised / missing name, and the assembled
11
- * {@link ConsoleTheme} carries a live framework adapter.
12
- *
13
- * Clean-room guard: an explicit assertion that no produced hex collides with a
14
- * known upstream accent, enforced across both ramps and the derived tokens.
15
- */
16
- export {};
@@ -1,62 +0,0 @@
1
- /**
2
- * Token derivation — expand a raw {@link ThemePalette} into the semantic
3
- * {@link ThemeTokens} the console actually renders against.
4
- *
5
- * The console body never names a hex or a palette stop; it names a *role*
6
- * (`signal`, `frame`, `bodyText`, `alarm`, …). This module is the one place the
7
- * thirteen roles are bound to ramp stops. The mapping is pure and total: every
8
- * key of {@link ThemeTokens} is assigned exactly once from a {@link ThemePalette}
9
- * field, so a ramp that is missing a stop fails to type-check rather than
10
- * producing an undefined colour at render time.
11
- *
12
- * Role → stop assignments (identical structure for both schemes; the schemes
13
- * differ only in the underlying ramp):
14
- *
15
- * - `signal` ← `primary` (the dominant accent: focus, selection)
16
- * - `frame` ← `tertiary` (default structural border lines)
17
- * - `quietFrame` ← `muted` (de-emphasised separators)
18
- * - `promptSurface` ← `secondary` (the composer's active tint)
19
- * - `cardAccent` ← `secondary` (row gutters and headers)
20
- * - `bodyText` ← `body` (default answer foreground)
21
- * - `mutedText` ← `muted` (timestamps, hints, metadata)
22
- * - `inkText` ← `ink` (high-contrast text on an accent)
23
- * - `notice` ← `tertiary` (informational tone)
24
- * - `affirm` ← `affirm` (success tone)
25
- * - `caution` ← `caution` (warning tone)
26
- * - `alarm` ← `alarm` (error/fault tone)
27
- * - `pending` ← `primary` (busy/in-flight tone)
28
- *
29
- * Rich-render roles (markdown / diff / syntax highlighting) are derived from the
30
- * same nine stops so the rebuild's new styled-transcript / colored-diff /
31
- * fenced-code surfaces recolour with the scheme and need no extra palette stop:
32
- *
33
- * - `codeInline` ← `primary` (inline code accent)
34
- * - `heading` ← `primary` (heading accent)
35
- * - `blockquoteBar` ← `muted` (dim quote bar)
36
- * - `diffAddedBg` ← `affirm` darkened toward ink (added-line tint)
37
- * - `diffRemovedBg` ← `alarm` darkened toward ink (removed-line tint)
38
- * - `diffAddedText` ← `affirm` (added foreground / `+`)
39
- * - `diffRemovedText` ← `alarm` (removed foreground / `-`)
40
- * - `synKeyword` ← `primary` (keywords)
41
- * - `synString` ← `affirm` (strings)
42
- * - `synNumber` ← `caution` (numbers)
43
- * - `synComment` ← `muted` (comments)
44
- * - `synType` ← `tertiary` (types / classes)
45
- *
46
- * Deriving the two diff backgrounds (rather than adding raw stops) keeps the
47
- * {@link ThemePalette} a flat nine-stop ramp while guaranteeing every scheme —
48
- * including the color-blind variants — gets a legible `+`/`-` tint that tracks
49
- * its own success/alarm hue.
50
- */
51
- import type { ThemePalette, ThemeTokens } from "../contract";
52
- /**
53
- * Map a raw accent ramp onto the closed semantic token set.
54
- *
55
- * Pure and deterministic: the same palette always yields the same tokens, and
56
- * the returned object is a fresh frozen value the resolver can cache. The role
57
- * assignments are shared by both schemes — only the ramp handed in differs.
58
- *
59
- * @param palette the raw nine-stop ramp for a scheme
60
- * @returns the full semantic token map (status + rich-render roles)
61
- */
62
- export declare function deriveTokens(palette: ThemePalette): ThemeTokens;
@@ -1,17 +0,0 @@
1
- #!/usr/bin/env node
2
- /**
3
- * Process entry point — the bin the OS launches.
4
- *
5
- * Responsibilities, in order:
6
- * 1. Set `process.title` to the brand's primary bin name so the process is
7
- * identifiable in `ps` / activity monitors.
8
- * 2. Install exactly one console filter that suppresses the transport-layer
9
- * `[MCP]` noise the MCP stack emits on stdout/stderr (unless the brand's
10
- * debug env var is set, in which case nothing is filtered).
11
- * 3. Hand the sliced `argv` to {@link boot} and adopt its resolved exit code.
12
- *
13
- * The boot call is guarded by an `import.meta` entry check so importing this
14
- * module (e.g. from a test) does not launch the agent — only running it as the
15
- * program entry does.
16
- */
17
- export {};
@@ -1,33 +0,0 @@
1
- /**
2
- * Thin guardrails entry — the headless, library-consumable surface of the
3
- * indusagi coding agent.
4
- *
5
- * This barrel re-exports ONLY the deterministic guardrail primitives (the
6
- * permission rule engine, the bash blocklist, prompt assembly, deck
7
- * provisioning, and the read-before-edit / checkpoint stores). It deliberately
8
- * imports from the LEAF modules — never the root `src/index.ts` barrel — so a
9
- * consumer can pull in the guardrails without dragging in the Ink/React console
10
- * tree (`export * as consoleUi from "./console"` lives only on the root barrel).
11
- *
12
- * Reachable from a published install as `indusagi-coding-agent/guardrails`.
13
- */
14
- export { resolveRuleDecision, makeRule, createPermissionGate, READ_ONLY_TOOL_NAMES, EDIT_TOOL_NAMES, } from "./conductor/permissions";
15
- export type { PermissionRule, PermissionMode, PermissionBehavior, PermissionDecision, } from "./conductor/permissions";
16
- export { evaluateCatastrophic, bashSubcommandSubjects } from "./conductor/bash-guard";
17
- export { composeBriefing } from "./briefing/compose";
18
- export { gatherContextDocs } from "./briefing/context-docs";
19
- export type { AgentTool, BriefingContext, ContextDoc } from "./briefing/contract";
20
- export { provisionDeck } from "./capability-deck/provision";
21
- export { createReadStateStore, READ_STATE_HANDLE_KEY, ReadStateStore } from "./boot/runners/read-state";
22
- export { createCheckpointStore, CHECKPOINT_HANDLE_KEY, CheckpointStore } from "./boot/runners/checkpoint";
23
- /**
24
- * The byte-stable refusal emitted when an edit/write is attempted on a file the
25
- * agent has not read this session.
26
- *
27
- * Surfaced here as the guardrails contract for consumers (e.g. eval fixtures)
28
- * that assert the refusal verbatim. The literal is intentionally duplicated
29
- * rather than re-exported because the upstream message lives only as a private
30
- * module-local const in the framework's read-state gate — it is not part of any
31
- * public barrel. A reword on either side must update both sites, by design.
32
- */
33
- export declare const READ_BEFORE_EDIT_MESSAGE = "File has not been read yet. Read it first before writing to it.";
@@ -1,24 +0,0 @@
1
- /**
2
- * Package root barrel — the public library surface of the indusagi coding agent.
3
- *
4
- * The terminal binary is `entry.ts` (the `indus` / `indusagi` bin). This barrel
5
- * exposes each subsystem as a namespace for embedding or testing. The agent
6
- * depends only on the `indusagi` framework package.
7
- */
8
- export * as boot from "./boot";
9
- export * as workspace from "./workspace";
10
- export * as conductor from "./conductor";
11
- export * as windowBudget from "./window-budget";
12
- export * as capabilityDeck from "./capability-deck";
13
- export * as runtimeBridge from "./runtime-bridge";
14
- export * as addons from "./addons";
15
- export * as consoleUi from "./console";
16
- export * as channels from "./channels";
17
- export * as briefing from "./briefing";
18
- export * as transcriptExport from "./transcript-export";
19
- export * as launch from "./launch";
20
- export * as insight from "./insight";
21
- export * as kit from "./kit";
22
- export * as settings from "./settings";
23
- export * as sessions from "./sessions";
24
- export { VERSION } from "./workspace";
@@ -1,45 +0,0 @@
1
- /**
2
- * Signal channel — the in-memory pipe between the recorder and the sinks.
3
- *
4
- * The recorder *pushes* {@link Signal}s the instant a probe opens, updates, or
5
- * closes; a {@link Sink} *pulls* a {@link SignalStream} (an
6
- * `AsyncIterable<Signal>`) and drains it at its own pace. A
7
- * {@link SignalChannel} bridges those two models: it is an unbounded
8
- * push-to-pull queue with back-pressure expressed by pull latency.
9
- *
10
- * Mechanics: when a consumer is parked in `next()` awaiting a value, an emitted
11
- * signal resolves its promise immediately (no buffering). When no consumer is
12
- * waiting, the signal is appended to an internal buffer and handed out in FIFO
13
- * order on the next pull. Closing the channel makes the iterator finish once the
14
- * buffer drains. The channel multiplexes: every call to {@link stream} returns an
15
- * independent iterator, and each emitted signal is fanned out to all of them, so
16
- * the console, file, and network sinks can each drain the same trail.
17
- */
18
- import { SignalEmit, SignalStream } from "./contract";
19
- /**
20
- * A fan-out push-to-pull pipe of {@link Signal}s.
21
- *
22
- * The recorder holds the {@link SignalChannel.emit} end; each sink holds a
23
- * {@link SignalStream} obtained from {@link SignalChannel.stream}. Producers
24
- * never block: emitting onto a channel with no parked consumer just buffers.
25
- */
26
- export interface SignalChannel {
27
- /** Push one signal to every attached subscriber. A no-op once closed. */
28
- readonly emit: SignalEmit;
29
- /** Attach a new independent consumer; returns its pull-model stream. */
30
- stream(): SignalStream;
31
- /** How many subscribers are currently attached. */
32
- readonly size: number;
33
- /** Whether {@link close} has been called. */
34
- readonly closed: boolean;
35
- /** Finish every attached stream once its buffer drains. Idempotent. */
36
- close(): void;
37
- }
38
- /**
39
- * Create a fresh, empty {@link SignalChannel}.
40
- *
41
- * The returned channel starts with no subscribers; call {@link SignalChannel.stream}
42
- * once per sink before emitting if those sinks must observe the first signal.
43
- * (A subscriber only receives signals emitted after it attaches.)
44
- */
45
- export declare function createChannel(): SignalChannel;