mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-04-28 03:49:31 +00:00
* fix: remove spinner from delete command to prevent output overlap The delete spinner in confirmAndDelete collided with cloud-specific destroy functions that print their own progress (logStep/logInfo). This caused the "Instance destroyed" message to overwrite the spinner line without a newline, producing garbled output. Remove the spinner and let the cloud destroy functions handle progress output directly, then show a clean success/failure message after. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix: redirect cloud destroy output into delete spinner Cloud destroy functions (logStep/logInfo) write progress to stderr, which collided with the @clack spinner on the terminal. Now stderr writes during the delete are intercepted and fed into s.message() so the spinner text updates in place instead of garbling the output. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * test: add delete spinner behavior tests Verify that confirmAndDelete: - Feeds stderr output from cloud destroy functions into spinner.message() - Calls spinner.clear() (not stop) so no spinner chrome remains - Shows p.log.success with the last stderr message as detail - Shows p.log.error on failure - Always restores process.stderr.write, even on error - Works when destroy produces no stderr output Also adds spinnerClear to the shared test-helpers mock. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix: remove global cloud module mocks that polluted other tests Only mock hetzner (the cloud used by test records). Other cloud modules are left un-mocked since they're never called for hetzner records. This fixes the DO payment warning test failures caused by mock.module being process-global in Bun. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: lab <6723574+louisgv@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
26 lines
663 B
JSON
26 lines
663 B
JSON
{
|
|
"name": "@openrouter/spawn",
|
|
"version": "0.16.8",
|
|
"type": "module",
|
|
"bin": {
|
|
"spawn": "cli.js"
|
|
},
|
|
"scripts": {
|
|
"dev": "bun run src/index.ts",
|
|
"build": "bun build src/index.ts --outfile cli.js --target bun --minify --packages bundle",
|
|
"compile": "bun build src/index.ts --compile --outfile spawn",
|
|
"lint": "biome lint src/",
|
|
"test": "bun test",
|
|
"test:watch": "bun test --watch"
|
|
},
|
|
"dependencies": {
|
|
"@clack/prompts": "1.0.0",
|
|
"@openrouter/spawn-shared": "workspace:*",
|
|
"picocolors": "1.1.1",
|
|
"valibot": "1.2.0"
|
|
},
|
|
"devDependencies": {
|
|
"@biomejs/biome": "2.4.3",
|
|
"@types/bun": "1.3.8"
|
|
}
|
|
}
|