You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Defined in: [sdk/utils/src/terminal/execute-command.ts:51](https://github.com/settlemint/sdk/blob/v2.6.3/sdk/utils/src/terminal/execute-command.ts#L51)
356
+
Defined in: [sdk/utils/src/terminal/execute-command.ts:60](https://github.com/settlemint/sdk/blob/v2.6.3/sdk/utils/src/terminal/execute-command.ts#L60)
357
357
358
358
Executes a command with the given arguments in a child process.
359
359
Pipes stdin to the child process and captures stdout/stderr output.
360
360
Masks any sensitive tokens in the output before displaying or returning.
361
+
In quiet mode (when CLAUDECODE, REPL_ID, or AGENT env vars are set),
362
+
output is suppressed unless the command errors out.
Defined in: [sdk/utils/src/terminal/note.ts:21](https://github.com/settlemint/sdk/blob/v2.6.3/sdk/utils/src/terminal/note.ts#L21)
1053
+
Defined in: [sdk/utils/src/terminal/note.ts:90](https://github.com/settlemint/sdk/blob/v2.6.3/sdk/utils/src/terminal/note.ts#L90)
1052
1054
1053
-
Displays a note message with optional warning level formatting.
1054
-
Regular notes are displayed in normal text, while warnings are shown in yellow.
1055
+
Displays a note message with optional warning or error level formatting.
1056
+
Regular notes are displayed in normal text, warnings are shown in yellow, and errors in red.
1055
1057
Any sensitive tokens in the message are masked before display.
1058
+
Warnings and errors are always displayed, even in quiet mode (when CLAUDECODE, REPL_ID, or AGENT env vars are set).
1059
+
When an Error object is provided with level "error", the stack trace is automatically included.
1056
1060
1057
1061
##### Parameters
1058
1062
1059
1063
| Parameter | Type | Default value | Description |
1060
1064
| ------ | ------ | ------ | ------ |
1061
-
|`message`|`string`|`undefined`| The message to display as a note |
1062
-
|`level`|`"info"`\|`"warn"`|`"info"`| The note level: "info" (default) or "warn" for warning styling |
1065
+
|`message`|`string`\|`Error`|`undefined`| The message to display as a note. Can be either: - A string: Displayed directly with appropriate styling - An Error object: The error message is displayed, and for level "error", the stack trace is automatically included|
1066
+
|`level`|`"error"`\|`"info"`\|`"warn"`|`"info"`| The note level: "info" (default), "warn" for warning styling, or "error" for error styling |
Defined in: [sdk/utils/src/terminal/spinner.ts:55](https://github.com/settlemint/sdk/blob/v2.6.3/sdk/utils/src/terminal/spinner.ts#L55)
1308
+
Defined in: [sdk/utils/src/terminal/spinner.ts:54](https://github.com/settlemint/sdk/blob/v2.6.3/sdk/utils/src/terminal/spinner.ts#L54)
1294
1309
1295
1310
Displays a loading spinner while executing an async task.
1296
1311
Shows progress with start/stop messages and handles errors.
@@ -1615,7 +1630,7 @@ The output of the command
1615
1630
1616
1631
#### SpinnerError
1617
1632
1618
-
Defined in: [sdk/utils/src/terminal/spinner.ts:12](https://github.com/settlemint/sdk/blob/v2.6.3/sdk/utils/src/terminal/spinner.ts#L12)
1633
+
Defined in: [sdk/utils/src/terminal/spinner.ts:11](https://github.com/settlemint/sdk/blob/v2.6.3/sdk/utils/src/terminal/spinner.ts#L11)
1619
1634
1620
1635
Error class used to indicate that the spinner operation failed.
1621
1636
This error is used to signal that the operation should be aborted.
@@ -1680,7 +1695,7 @@ Configuration options for the logger
1680
1695
1681
1696
#### SpinnerOptions
1682
1697
1683
-
Defined in: [sdk/utils/src/terminal/spinner.ts:25](https://github.com/settlemint/sdk/blob/v2.6.3/sdk/utils/src/terminal/spinner.ts#L25)
1698
+
Defined in: [sdk/utils/src/terminal/spinner.ts:24](https://github.com/settlemint/sdk/blob/v2.6.3/sdk/utils/src/terminal/spinner.ts#L24)
1684
1699
1685
1700
Options for configuring the spinner behavior
1686
1701
@@ -1694,9 +1709,9 @@ Options for configuring the spinner behavior
1694
1709
1695
1710
| Property | Type | Description | Defined in |
1696
1711
| ------ | ------ | ------ | ------ |
1697
-
| <aid="startmessage"></a> `startMessage`|`string`| Message to display when spinner starts |[sdk/utils/src/terminal/spinner.ts:27](https://github.com/settlemint/sdk/blob/v2.6.3/sdk/utils/src/terminal/spinner.ts#L27)|
1698
-
| <aid="stopmessage"></a> `stopMessage`|`string`| Message to display when spinner completes successfully |[sdk/utils/src/terminal/spinner.ts:31](https://github.com/settlemint/sdk/blob/v2.6.3/sdk/utils/src/terminal/spinner.ts#L31)|
1699
-
| <aid="task"></a> `task`| (`spinner?`) => `Promise`\<`R`\>| Async task to execute while spinner is active |[sdk/utils/src/terminal/spinner.ts:29](https://github.com/settlemint/sdk/blob/v2.6.3/sdk/utils/src/terminal/spinner.ts#L29)|
1712
+
| <aid="startmessage"></a> `startMessage`|`string`| Message to display when spinner starts |[sdk/utils/src/terminal/spinner.ts:26](https://github.com/settlemint/sdk/blob/v2.6.3/sdk/utils/src/terminal/spinner.ts#L26)|
1713
+
| <aid="stopmessage"></a> `stopMessage`|`string`| Message to display when spinner completes successfully |[sdk/utils/src/terminal/spinner.ts:30](https://github.com/settlemint/sdk/blob/v2.6.3/sdk/utils/src/terminal/spinner.ts#L30)|
1714
+
| <aid="task"></a> `task`| (`spinner?`) => `Promise`\<`R`\>| Async task to execute while spinner is active |[sdk/utils/src/terminal/spinner.ts:28](https://github.com/settlemint/sdk/blob/v2.6.3/sdk/utils/src/terminal/spinner.ts#L28)|
0 commit comments