@crouton-kit/crouter 0.3.80 → 0.3.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +9 -0
- package/dist/clients/attach/attach-cmd.js +897 -898
- package/dist/clients/attach/chat-view.js +7 -3
- package/dist/clients/attach/slash-commands.js +9 -1
- package/dist/core/canvas/canvas.d.ts +7 -0
- package/dist/core/canvas/canvas.js +15 -0
- package/dist/core/runtime/broker.js +14 -0
- package/dist/core/runtime/front-door.js +50 -4
- package/dist/core/runtime/package-health.d.ts +28 -0
- package/dist/core/runtime/package-health.js +94 -0
- package/dist/core/runtime/resume.d.ts +6 -0
- package/dist/core/runtime/resume.js +275 -0
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -39,6 +39,15 @@ async function main() {
|
|
|
39
39
|
await runCli(root, process.argv);
|
|
40
40
|
}
|
|
41
41
|
main().catch((err) => {
|
|
42
|
+
// A command stopped mid-run (Ctrl-C / an aborted AbortSignal) surfaces as an
|
|
43
|
+
// AbortError whose default message is "This operation was aborted" — noise for
|
|
44
|
+
// an intentional interrupt. Report it as a plain "Interrupted" instead.
|
|
45
|
+
const isAbort = (err instanceof Error && err.name === 'AbortError') ||
|
|
46
|
+
(err instanceof Error && /operation was aborted/i.test(err.message));
|
|
47
|
+
if (isAbort) {
|
|
48
|
+
process.stderr.write('crtr: Interrupted\n');
|
|
49
|
+
process.exit(130);
|
|
50
|
+
}
|
|
42
51
|
const msg = err instanceof Error ? err.message : String(err);
|
|
43
52
|
process.stderr.write(`crtr: ${msg}\n`);
|
|
44
53
|
process.exit(1);
|