@thegitai/cli 1.0.0-preview.62 → 1.0.0-preview.63
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 +1 -0
- package/dist/bin/ai.js +1 -0
- package/dist/src/ui/repl.js +8 -2
- package/dist/src/ui/tui/build-frame.js +8 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -88,6 +88,7 @@ Each model remembers its own choice across new and resumed sessions.
|
|
|
88
88
|
A model your plan does not include stays in the list, grayed out with the
|
|
89
89
|
reason, and **Enter** does not select it. While a paid account is on its extra
|
|
90
90
|
Auto usage, the named models fold into one line until the plan renews.
|
|
91
|
+
On Plus or Pro, the footer names the plan after **TheGitAI**.
|
|
91
92
|
The picker shows a model's effort beside its name when it is not Default, and
|
|
92
93
|
the footer always shows it, except on Auto, which sets its own. The footer labels
|
|
93
94
|
agent mode separately as `Mode: ...`; narrow terminals place it on the next
|
package/dist/bin/ai.js
CHANGED
package/dist/src/ui/repl.js
CHANGED
|
@@ -1431,7 +1431,7 @@ async function saveSessionBoth({ serverSessionClient, session, }) {
|
|
|
1431
1431
|
saveSessionState(session);
|
|
1432
1432
|
await serverSessionClient.save(session);
|
|
1433
1433
|
}
|
|
1434
|
-
export async function runClientInteractive({ appendPromptHistory, authConfig, debugUi, serverModels, serverSessionClient, session, usageText, initialPrompt, }) {
|
|
1434
|
+
export async function runClientInteractive({ appendPromptHistory, authConfig, debugUi, plan, serverModels, serverSessionClient, session, usageText, initialPrompt, }) {
|
|
1435
1435
|
if (process.stdin.isTTY !== true) {
|
|
1436
1436
|
throw new Error('stdin is not a terminal');
|
|
1437
1437
|
}
|
|
@@ -1445,7 +1445,10 @@ export async function runClientInteractive({ appendPromptHistory, authConfig, de
|
|
|
1445
1445
|
setScratchSession(session.sessionId);
|
|
1446
1446
|
setImageStoreSession(session.sessionId);
|
|
1447
1447
|
setTodoSession(session.sessionId);
|
|
1448
|
-
const store = createShellStore(
|
|
1448
|
+
const store = createShellStore({
|
|
1449
|
+
...createInitialShellState(session, serverModels, debugUi, authConfig.serverUrl),
|
|
1450
|
+
plan,
|
|
1451
|
+
});
|
|
1449
1452
|
store.replaceTranscript(createSessionTranscript(session));
|
|
1450
1453
|
let currentServerModels = serverModels;
|
|
1451
1454
|
let sessionAutoYes = session.autoYes;
|
|
@@ -3077,6 +3080,9 @@ export async function runClientInteractive({ appendPromptHistory, authConfig, de
|
|
|
3077
3080
|
}
|
|
3078
3081
|
};
|
|
3079
3082
|
session.onAccountUsage = (usage) => {
|
|
3083
|
+
if (usage?.plan && usage.plan !== store.getState().plan) {
|
|
3084
|
+
store.update((current) => ({ ...current, plan: usage.plan }));
|
|
3085
|
+
}
|
|
3080
3086
|
const notice = usageNotice(usage);
|
|
3081
3087
|
if (!notice)
|
|
3082
3088
|
return;
|
|
@@ -486,11 +486,18 @@ export function fitComposerFooterRow({ modeLabels, modeLabelFallback, cycleHint,
|
|
|
486
486
|
: 0;
|
|
487
487
|
return { ...chosen, gap };
|
|
488
488
|
}
|
|
489
|
+
function planSpans(plan) {
|
|
490
|
+
if (plan === 'plus')
|
|
491
|
+
return [span(' Plus', { color: 'cyan', bold: true })];
|
|
492
|
+
if (plan === 'pro')
|
|
493
|
+
return [span(' Pro', { color: 'ansi256(178)', bold: true })];
|
|
494
|
+
return [];
|
|
495
|
+
}
|
|
489
496
|
function composerFooterLines(state, contentWidth) {
|
|
490
497
|
const visibleSessionId = formatPromptSessionIdLabel(state.showSessionId, state.sessionId);
|
|
491
498
|
const transientStatus = footerTransientStatus(state.transientStatus ?? null);
|
|
492
499
|
const lines = [
|
|
493
|
-
line(span('TheGitAI', { color: 'cyan', bold: true }), span(' • ', { color: 'gray', dim: true }), span(formatPromptDirectoryLabel(state.projectRoot), { color: 'cyan' }), ...(transientStatus
|
|
500
|
+
line(span('TheGitAI', { color: 'cyan', bold: true }), ...planSpans(state.plan), span(' • ', { color: 'gray', dim: true }), span(formatPromptDirectoryLabel(state.projectRoot), { color: 'cyan' }), ...(transientStatus
|
|
494
501
|
? [
|
|
495
502
|
span(' ', { color: 'gray', dim: true }),
|
|
496
503
|
span(transientStatus.text, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thegitai/cli",
|
|
3
|
-
"version": "1.0.0-preview.
|
|
3
|
+
"version": "1.0.0-preview.63",
|
|
4
4
|
"description": "TheGitAI is an agentic AI coding tool for your terminal. It reads and searches your repository, writes and edits files, runs your tests, and verifies the change before handing it back.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agentic-ai",
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
"@lydell/node-pty-linux-x64": "1.1.0",
|
|
46
46
|
"@lydell/node-pty-win32-arm64": "1.1.0",
|
|
47
47
|
"@lydell/node-pty-win32-x64": "1.1.0",
|
|
48
|
-
"@thegitai/tui-darwin-arm64": "1.0.0-preview.
|
|
49
|
-
"@thegitai/tui-darwin-x64": "1.0.0-preview.
|
|
50
|
-
"@thegitai/tui-linux-arm64": "1.0.0-preview.
|
|
51
|
-
"@thegitai/tui-linux-x64": "1.0.0-preview.
|
|
52
|
-
"@thegitai/tui-win32-x64": "1.0.0-preview.
|
|
48
|
+
"@thegitai/tui-darwin-arm64": "1.0.0-preview.63",
|
|
49
|
+
"@thegitai/tui-darwin-x64": "1.0.0-preview.63",
|
|
50
|
+
"@thegitai/tui-linux-arm64": "1.0.0-preview.63",
|
|
51
|
+
"@thegitai/tui-linux-x64": "1.0.0-preview.63",
|
|
52
|
+
"@thegitai/tui-win32-x64": "1.0.0-preview.63",
|
|
53
53
|
"@vscode/ripgrep": "1.18.0"
|
|
54
54
|
},
|
|
55
55
|
"repository": {
|