@wrongstack/webui 0.9.7 → 0.9.19

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.
@@ -62,16 +62,30 @@ function createDefaultContainer(opts) {
62
62
  container.bind(TOKENS.RetryPolicy, () => new DefaultRetryPolicy());
63
63
  container.bind(TOKENS.ErrorHandler, () => new DefaultErrorHandler());
64
64
  container.bind(TOKENS.ModelsRegistry, () => modelsRegistry);
65
- container.bind(TOKENS.TokenCounter, () => new DefaultTokenCounter({ registry: modelsRegistry, providerId: config.provider }));
65
+ container.bind(
66
+ TOKENS.TokenCounter,
67
+ () => new DefaultTokenCounter({ registry: modelsRegistry, providerId: config.provider })
68
+ );
66
69
  const modeStore = new DefaultModeStore({ directory: wpaths.configDir });
67
70
  container.bind(TOKENS.ModeStore, () => modeStore);
68
- container.bind(TOKENS.SessionStore, () => new DefaultSessionStore({ dir: wpaths.projectSessions }));
71
+ container.bind(
72
+ TOKENS.SessionStore,
73
+ () => new DefaultSessionStore({
74
+ dir: wpaths.projectSessions,
75
+ // Scrub secrets out of persisted user/model turns (F-06). Tool output
76
+ // is already scrubbed by the executor.
77
+ secretScrubber: container.resolve(TOKENS.SecretScrubber)
78
+ })
79
+ );
69
80
  const memoryStore = new DefaultMemoryStore({ paths: wpaths });
70
81
  container.bind(TOKENS.MemoryStore, () => memoryStore);
71
82
  const skillLoader = new DefaultSkillLoader({ paths: wpaths, bundledDir: opts.bundledSkillsDir });
72
83
  container.bind(TOKENS.SkillLoader, () => skillLoader);
73
84
  if (opts.systemPrompt) {
74
- container.bind(TOKENS.SystemPromptBuilder, () => new DefaultSystemPromptBuilder(opts.systemPrompt));
85
+ container.bind(
86
+ TOKENS.SystemPromptBuilder,
87
+ () => new DefaultSystemPromptBuilder(opts.systemPrompt)
88
+ );
75
89
  }
76
90
  container.bind(
77
91
  TOKENS.PermissionPolicy,