fix: address round-1 review findings
- slow_down now sleeps (and waits longer) instead of re-polling at once; the interval cap that could lower a server interval is gone. The deadline already bounds the loop. - Non-JSON error bodies from gateways and the Vercel checkpoint no longer surface as SyntaxError; the HTTP status is preserved. - Drop the dead process.env.NOUS_API_KEY fallback in fetchModels: envApiKeyAuth already resolves it into the credential upstream. - apply() persists the catalog flag before mutating memory, so a read-only agent dir cannot leave the two out of step. - sleep() replaced with node:timers/promises; three unused exports removed; stale tags.user comment corrected; hermes filter explained. - Tests: 8 (was 4). Pin tierOf, the tier header, and withoutTierHeader on both stream entry points; t.mock.method replaces hand-rolled fetch swaps; stub gains getAgentDir. - Docs: README covers install lockfile flag, hermes row, browser-UA posture, and typecheck path pinning; AGENTS.md allowlist includes pi-coding-agent; tests/AGENTS.md contracts updated.
This commit is contained in:
1 parent
8bbece7613
commit
00d50e10de
7 files changed
+102
-50
No files matched your search
@@ -1,4 +1,6 @@
|
||||
// Minimal stand-in for the host-injected @earendil-works/* packages; only what index.ts touches at import time.
|
||||
// Minimal stand-in for the host-injected @earendil-works/* packages; only what index.ts touches at module load.
|
||||
export const envApiKeyAuth = (name, envVars) => ({ name, envVars });
|
||||
export const createProvider = (input) => input;
|
||||
export const openAICompletionsApi = () => ({ stream() {}, streamSimple() {} });
|
||||
// Used only when a test drives the default export (nousPortal), which resolves the catalog flag path at load.
|
||||
export const getAgentDir = () => "/tmp";
|
||||
Reference in new issue
Block a user