reasonix 0.4.20 → 0.4.21

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.
@@ -2,9 +2,9 @@
2
2
  import {
3
3
  CODE_SYSTEM_PROMPT,
4
4
  codeSystemPrompt
5
- } from "./chunk-DDIKQZVD.js";
5
+ } from "./chunk-K6MR4SWS.js";
6
6
  export {
7
7
  CODE_SYSTEM_PROMPT,
8
8
  codeSystemPrompt
9
9
  };
10
- //# sourceMappingURL=prompt-YEJEJ3IZ.js.map
10
+ //# sourceMappingURL=prompt-VDN5U3YE.js.map
package/dist/index.d.ts CHANGED
@@ -918,9 +918,12 @@ declare function applyUserMemory(basePrompt: string, opts?: {
918
918
  projectRoot?: string;
919
919
  }): string;
920
920
  /**
921
- * Compose REASONIX.md + user memory in one call. Drop-in replacement
922
- * for `applyProjectMemory` at CLI entry points preserves the existing
923
- * REASONIX_PROJECT block order, then appends the two user-memory blocks.
921
+ * Compose every lazy-loaded prefix block in one call: REASONIX.md,
922
+ * user memory (global + project), and the skills index. Drop-in
923
+ * replacement for `applyProjectMemory` at CLI entry points. Stacking
924
+ * order is stable — the prefix hash only changes when block *content*
925
+ * changes, not when this helper is called a second time with the same
926
+ * filesystem state.
924
927
  */
925
928
  declare function applyMemoryStack(basePrompt: string, rootDir: string): string;
926
929
 
@@ -1092,8 +1095,14 @@ interface ShellToolsOptions {
1092
1095
  /**
1093
1096
  * Extra command-name prefixes the user explicitly trusts. Added on
1094
1097
  * top of the built-in allowlist. Examples: `["my-ci-script", "lint"]`.
1098
+ *
1099
+ * Accepts either a fixed array (captured once at registration) or a
1100
+ * getter called on every dispatch. The getter form is load-bearing:
1101
+ * when the TUI's `ShellConfirm` writes a new prefix to config mid-
1102
+ * session, the running `run_command` must pick it up immediately —
1103
+ * otherwise the same command gets re-prompted until the next launch.
1095
1104
  */
1096
- extraAllowed?: string[];
1105
+ extraAllowed?: readonly string[] | (() => readonly string[]);
1097
1106
  /**
1098
1107
  * When true, skip the allowlist entirely and auto-run every command.
1099
1108
  * Off by default — this is an escape hatch for non-interactive use