total-recall-brain 3.14.3 → 3.14.4

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.
@@ -180,7 +180,7 @@ export default function ApiKeysPage() {
180
180
  } finally {
181
181
  setLoading(false)
182
182
  }
183
- }, [selected?.key, selected])
183
+ }, [selected])
184
184
 
185
185
  const loadPats = useCallback(async () => {
186
186
  try {
@@ -194,7 +194,29 @@ export default function InstructionsPage() {
194
194
 
195
195
  // ─── Data Loading ─────────────────────────────────────────────────────────────
196
196
 
197
- const loadSurfaces = async () => {
197
+ const applyFallback = useCallback(() => {
198
+ setSurfaces(FALLBACK_SURFACES)
199
+ setIsFallback(true)
200
+ setLastCompiled('')
201
+ setTotalNodes(0)
202
+ const first = FALLBACK_SURFACES[0]
203
+ setSelected(first)
204
+ setContent('Content unavailable — recompile to regenerate')
205
+ }, [])
206
+
207
+ const loadContent = useCallback(async (name: string) => {
208
+ setContentLoading(true)
209
+ try {
210
+ const data = await fetchInstructionContent(name)
211
+ setContent(data.content || 'Empty surface — no compiled content yet.')
212
+ } catch {
213
+ setContent('Content unavailable — recompile to regenerate')
214
+ } finally {
215
+ setContentLoading(false)
216
+ }
217
+ }, [])
218
+
219
+ const loadSurfaces = useCallback(async () => {
198
220
  setLoading(true)
199
221
  setError(null)
200
222
  try {
@@ -220,29 +242,7 @@ export default function InstructionsPage() {
220
242
  } finally {
221
243
  setLoading(false)
222
244
  }
223
- }
224
-
225
- const applyFallback = () => {
226
- setSurfaces(FALLBACK_SURFACES)
227
- setIsFallback(true)
228
- setLastCompiled('')
229
- setTotalNodes(0)
230
- const first = FALLBACK_SURFACES[0]
231
- setSelected(first)
232
- setContent('Content unavailable — recompile to regenerate')
233
- }
234
-
235
- const loadContent = async (name: string) => {
236
- setContentLoading(true)
237
- try {
238
- const data = await fetchInstructionContent(name)
239
- setContent(data.content || 'Empty surface — no compiled content yet.')
240
- } catch {
241
- setContent('Content unavailable — recompile to regenerate')
242
- } finally {
243
- setContentLoading(false)
244
- }
245
- }
245
+ }, [applyFallback, loadContent])
246
246
 
247
247
  const handleSelect = (surface: Surface) => {
248
248
  setSelected(surface)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "total-recall-brain",
3
- "version": "3.14.3",
3
+ "version": "3.14.4",
4
4
  "description": "Personal AI system — database-free, SSSS-powered intelligence engine deployable to any POSIX host.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -2,7 +2,7 @@
2
2
  name: total-recall
3
3
  provenance: total-recall
4
4
  description: "Use this skill to operate Total Recall — portable memory, instructions, openwiki, skill deploy, and secrets. MANDATORY: Read this file before changing TR setup. Nested packages under modules/ are NOT agent skills."
5
- version: 3.14.3
5
+ version: 3.14.4
6
6
  ---
7
7
 
8
8
  # Total Recall — Master Agent Skill