@hasna/statusline 0.0.3 → 0.0.5
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 +25 -15
- package/dist/accounts.d.ts +4 -2
- package/dist/cli.js +71 -55
- package/dist/index.js +65 -49
- package/dist/mcp/index.js +6597 -19325
- package/dist/render.d.ts +5 -1
- package/dist/settings.d.ts +11 -0
- package/package.json +5 -5
package/dist/render.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import type { StatusContext } from "./providers/types.js";
|
|
2
2
|
import type { StatuslineConfig } from "./config.js";
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* Render the configured segments; a failing segment is dropped, never fatal.
|
|
5
|
+
* A `newline` id starts a new row (hosts render each stdout line as its own
|
|
6
|
+
* row); rows that end up empty are dropped rather than rendered blank.
|
|
7
|
+
*/
|
|
4
8
|
export declare function renderLine(ctx: StatusContext, cfg: StatuslineConfig): Promise<string>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type Env = Record<string, string | undefined>;
|
|
2
|
+
/**
|
|
3
|
+
* Fast mode is a per-config-dir agent setting (`fastMode` in that dir's
|
|
4
|
+
* `settings.json`, toggled with `/fast`). The statusline payload does not
|
|
5
|
+
* carry it, so it is read from the same config dir that names the session's
|
|
6
|
+
* account — per-process via `CLAUDE_CONFIG_DIR`, like everything in
|
|
7
|
+
* `accounts.ts`, so concurrent sessions under different profiles never
|
|
8
|
+
* report each other's toggle.
|
|
9
|
+
*/
|
|
10
|
+
export declare function sessionFastMode(env?: Env): boolean;
|
|
11
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hasna/statusline",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "Tiny composable statusline CLI for AI coding agents
|
|
3
|
+
"version": "0.0.5",
|
|
4
|
+
"description": "Tiny composable statusline CLI for AI coding agents \u2014 pre-built toggleable segments for Claude Code, with a provider model for others",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -60,11 +60,11 @@
|
|
|
60
60
|
"bun": ">=1.0.0"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@modelcontextprotocol/sdk": "
|
|
64
|
-
"zod": "
|
|
63
|
+
"@modelcontextprotocol/sdk": "1.12.1",
|
|
64
|
+
"zod": "3.25.76"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@types/bun": "^1.2.4",
|
|
68
|
-
"typescript": "
|
|
68
|
+
"typescript": "5.9.3"
|
|
69
69
|
}
|
|
70
70
|
}
|