fix: address PR review — await store.cas.put + bun shebang → node
CI / check (pull_request) Failing after 3m59s
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:
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env bun
|
||||
#!/usr/bin/env node
|
||||
|
||||
import { createBuiltinAgent } from "./agent.js";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env bun
|
||||
#!/usr/bin/env node
|
||||
|
||||
import { createClaudeCodeAgent } from "./claude-code.js";
|
||||
|
||||
|
||||
@@ -12,11 +12,11 @@ describe("Issue #551 — bin entry & engines", () => {
|
||||
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 binPath = pkg.bin["uwf-hermes"];
|
||||
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", () => {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env bun
|
||||
#!/usr/bin/env node
|
||||
|
||||
import { createHermesAgent } from "./hermes.js";
|
||||
|
||||
|
||||
@@ -192,7 +192,7 @@ export function createAgent(options: AgentOptions): () => Promise<void> {
|
||||
let assembledPromptHash: CasRef | null = null;
|
||||
if (promptText !== "") {
|
||||
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 {
|
||||
assembledPromptHash = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user