This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

fix: container import extensions (.ts not .js) for experimental-strip-types

Node --experimental-strip-types requires .ts extensions in imports,
not .js. Also adds better error reporting in callContainer.

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta Code <noreply@letta.com>

author
nandi
co-author
Letta Code
date (May 14, 2026, 6:05 AM UTC) commit e922b5d6 parent 390c4864
+11 -5
+2 -1
container/Dockerfile
··· 16 16 COPY package.json ./ 17 17 RUN npm install --production 18 18 19 - # Copy analysis engine 19 + # Copy analysis engine (ARG to bust cache on source changes) 20 + ARG BUILD_DATE=unknown 20 21 COPY server.ts ./ 21 22 COPY analysis.ts ./ 22 23 COPY sync.ts ./
+1 -1
container/analysis.ts
··· 93 93 const synthesis = synthesize(island, themes, highlights, tensions, openQuestions); 94 94 95 95 // 9. Build carry cross-refs 96 - const carryRefs = buildCarryRefs(connections); 96 + const carryRefs = buildCarryRefs(highlights); 97 97 98 98 return { themes, highlights, tensions, openQuestions, synthesis, carryRefs }; 99 99 }
+2 -2
container/server.ts
··· 6 6 // POST /sync — sync vault + carry data 7 7 // GET /health — health check 8 8 9 - import { analyze } from "./analysis.js"; 10 - import { syncAll, syncVault, syncCarry } from "./sync.js"; 9 + import { analyze } from "./analysis.ts"; 10 + import { syncAll, syncVault, syncCarry } from "./sync.ts"; 11 11 import { createServer } from "http"; 12 12 import { 13 13 execSync,
+6 -1
src/worker.ts
··· 700 700 init.headers = { "Content-Type": "application/json" }; 701 701 } 702 702 const resp = await stub.fetch(new Request(url.toString(), init)); 703 - return resp.json(); 703 + const text = await resp.text(); 704 + try { 705 + return JSON.parse(text); 706 + } catch { 707 + throw new Error(`Container returned non-JSON: ${text.slice(0, 500)}`); 708 + } 704 709 } 705 710 706 711 // Derive islands — POST, delegates to container