@hasna/statusline 0.0.2 → 0.0.3
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/README.md +68 -1
- package/dist/accounts.d.ts +50 -0
- package/dist/cli.js +294 -16
- package/dist/config.d.ts +2 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.js +291 -17
- package/dist/install.d.ts +12 -1
- package/dist/mcp/index.js +354 -76
- package/dist/providers/types.d.ts +22 -0
- package/package.json +1 -1
|
@@ -14,12 +14,34 @@ export interface StatusContext {
|
|
|
14
14
|
};
|
|
15
15
|
transcriptPath?: string;
|
|
16
16
|
sessionId?: string;
|
|
17
|
+
/** Thread title the user set with `/rename`; absent until they do. */
|
|
18
|
+
sessionName?: string;
|
|
17
19
|
version?: string;
|
|
18
20
|
outputStyle?: string;
|
|
21
|
+
/** Reasoning effort level, on models that expose one. */
|
|
22
|
+
effort?: string;
|
|
23
|
+
/** Whether extended thinking is on. */
|
|
24
|
+
thinking?: boolean;
|
|
25
|
+
/** Rate-limit windows, present only once the host reports limit data. */
|
|
26
|
+
rateLimits?: {
|
|
27
|
+
fiveHour?: {
|
|
28
|
+
usedPercentage?: number;
|
|
29
|
+
};
|
|
30
|
+
sevenDay?: {
|
|
31
|
+
usedPercentage?: number;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
19
34
|
}
|
|
35
|
+
/** ANSI hints a segment can ask the renderer for. */
|
|
36
|
+
export type SegmentColor = "cyan" | "magenta" | "blue" | "green" | "yellow" | "red" | "bold" | "dim";
|
|
20
37
|
export interface Segment {
|
|
21
38
|
id: string;
|
|
22
39
|
description: string;
|
|
23
40
|
defaultEnabled: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Colour applied by the renderer when colours are on. A function lets a
|
|
43
|
+
* segment escalate with its value (e.g. a limit gauge turning red).
|
|
44
|
+
*/
|
|
45
|
+
color?: SegmentColor | ((ctx: StatusContext) => SegmentColor | null);
|
|
24
46
|
render(ctx: StatusContext): Promise<string | null> | string | null;
|
|
25
47
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hasna/statusline",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "Tiny composable statusline CLI for AI coding agents — pre-built toggleable segments for Claude Code, with a provider model for others",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|