Remove dotenv, shadcn, tw-animate-css, class-variance-authority — all
confirmed zero references in source after components/ui/ deletion.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Moonshot kimi-k2.5 (and any model whose name contains "thinking") only
accept temperature=1; any other value returns 400. inkos agents pass
deliberate per-call temperatures (0.1 state-validator → 0.8 architect
brainstorm), so simply changing the project-level default would not
help — the first architect call at 0.8 would still be rejected.
Dispatch a clamp inside chatCompletion / chatWithTools: when the model
matches the thinking-model predicate, override the resolved temperature
to 1 and emit a one-time warning per model name. Regular models are
untouched.
Fixes: inkos book create --title ... crashing on 400 with kimi-k2.5.
Guards against Windows-specific regressions like the path-separator
and npm.cmd issues fixed in the preceding commit. Prior CI ran only
on ubuntu-latest, so the test failures reported in this PR went
undetected on main.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Fixes two classes of issues that prevented the test suite from passing
on Windows and caused a latent publish bug:
1. Windows path-separator bugs in unit tests. studio.test.ts,
studio-runtime.test.ts, and daemon.test.ts hard-coded POSIX paths
(e.g. "/project/inkos.pid") while the production code uses path.join,
which produces backslashes on Windows. Tests now build expected
paths with path.join so they match whichever separator the current
OS uses. No production code changes.
2. execFileSync("npm", ...) in publish-package.test.ts failed with
ENOENT on Windows because npm ships as npm.cmd. Switched to npm.cmd
plus shell: true on win32.
3. packages/cli/package.json and packages/studio/package.json had been
committed in their prepack-normalized form, pinning
@actalk/inkos-core and @actalk/inkos-studio to "1.1.1" instead of
"workspace:*". This was correctly flagged by the
"keeps source CLI dependencies linked through the workspace
protocol" test, which was failing on every platform. Restored the
workspace protocol so future publishes (via prepack rewrite) cut
clean releases instead of locking siblings to the previous version.
Before: 43 failed / 32 passed on Windows.
After: 79 passed / 0 failed on Windows, typecheck clean across all
three packages.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>