fix: address PR review — await store.cas.put + bun shebang → node
CI / check (pull_request) Failing after 3m59s

- Add missing await on store.cas.put() in run.ts:192
- Replace #!/usr/bin/env bun → #!/usr/bin/env node in all CLI bins
- Update issue-551 test to assert node shebang
This commit is contained in:
2026-06-03 14:58:23 +00:00
parent 8cb74672bc
commit fd33bf5ee1
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env bun #!/usr/bin/env node
import { createBuiltinAgent } from "./agent.js"; import { createBuiltinAgent } from "./agent.js";
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env bun #!/usr/bin/env node
import { createClaudeCodeAgent } from "./claude-code.js"; import { createClaudeCodeAgent } from "./claude-code.js";
@@ -12,11 +12,11 @@ describe("Issue #551 — bin entry & engines", () => {
expect(pkg.engines?.bun).toBeUndefined(); expect(pkg.engines?.bun).toBeUndefined();
}); });
test("bin entry file has bun shebang", () => { test("bin entry file has node shebang", () => {
const pkg = JSON.parse(readFileSync(join(PKG_ROOT, "package.json"), "utf-8")); const pkg = JSON.parse(readFileSync(join(PKG_ROOT, "package.json"), "utf-8"));
const binPath = pkg.bin["uwf-hermes"]; const binPath = pkg.bin["uwf-hermes"];
const content = readFileSync(join(PKG_ROOT, binPath), "utf-8"); const content = readFileSync(join(PKG_ROOT, binPath), "utf-8");
expect(content.startsWith("#!/usr/bin/env bun")).toBe(true); expect(content.startsWith("#!/usr/bin/env node")).toBe(true);
}); });
test("README.md explains uwf-hermes is an adapter", () => { test("README.md explains uwf-hermes is an adapter", () => {
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env bun #!/usr/bin/env node
import { createHermesAgent } from "./hermes.js"; import { createHermesAgent } from "./hermes.js";
+1 -1
View File
@@ -192,7 +192,7 @@ export function createAgent(options: AgentOptions): () => Promise<void> {
let assembledPromptHash: CasRef | null = null; let assembledPromptHash: CasRef | null = null;
if (promptText !== "") { if (promptText !== "") {
try { try {
assembledPromptHash = ctx.meta.store.cas.put(ctx.meta.schemas.text, promptText); assembledPromptHash = await ctx.meta.store.cas.put(ctx.meta.schemas.text, promptText);
} catch { } catch {
assembledPromptHash = null; assembledPromptHash = null;
} }