@thegitai/cli 1.0.0-preview.37 → 1.0.0-preview.39
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 +20 -0
- package/dist/bin/ai.js +25 -18
- package/dist/bin/browser-host.js +265 -0
- package/dist/src/agent-mode.js +10 -0
- package/dist/src/api/chat.js +5 -1
- package/dist/src/api/models.js +10 -0
- package/dist/src/browser/bridge.js +232 -0
- package/dist/src/browser/framing.js +42 -0
- package/dist/src/browser/native-host.js +209 -0
- package/dist/src/browser/protocol.js +46 -0
- package/dist/src/browser/session-bridge.js +104 -0
- package/dist/src/client-environment.js +2 -0
- package/dist/src/permissions.js +49 -4
- package/dist/src/session.js +6 -2
- package/dist/src/tool-executor.js +1 -0
- package/dist/src/tools/browser.js +628 -0
- package/dist/src/tools/index.js +19 -0
- package/dist/src/ui/repl.js +24 -1
- package/package.json +6 -6
package/dist/src/ui/repl.js
CHANGED
|
@@ -2289,7 +2289,14 @@ export async function runClientInteractive({ appendPromptHistory, authConfig, de
|
|
|
2289
2289
|
}));
|
|
2290
2290
|
try {
|
|
2291
2291
|
const snapshot = await loadInteractiveSession(selected.id);
|
|
2292
|
-
|
|
2292
|
+
const requestedModelId = Number(snapshot.modelId);
|
|
2293
|
+
const knownModels = currentServerModels.models.some((model) => model.id === requestedModelId)
|
|
2294
|
+
? currentServerModels
|
|
2295
|
+
: await refreshServerModels();
|
|
2296
|
+
const { modelId: resolvedModelId, fellBack } = models.resolveResumedSessionModel(requestedModelId, knownModels);
|
|
2297
|
+
applySessionSnapshot(session, snapshot, {
|
|
2298
|
+
modelOverride: fellBack ? resolvedModelId : undefined,
|
|
2299
|
+
});
|
|
2293
2300
|
setBackgroundJobSession(session.sessionId);
|
|
2294
2301
|
setScratchSession(session.sessionId);
|
|
2295
2302
|
setImageStoreSession(session.sessionId);
|
|
@@ -2314,6 +2321,15 @@ export async function runClientInteractive({ appendPromptHistory, authConfig, de
|
|
|
2314
2321
|
kind: 'system',
|
|
2315
2322
|
title: 'Session',
|
|
2316
2323
|
},
|
|
2324
|
+
...(fellBack
|
|
2325
|
+
? [
|
|
2326
|
+
{
|
|
2327
|
+
body: `This session's model is no longer available — switched to ${formatModelLabel(resolvedModelId, knownModels.models)}. Conversation history preserved.`,
|
|
2328
|
+
kind: 'system',
|
|
2329
|
+
title: 'Model',
|
|
2330
|
+
},
|
|
2331
|
+
]
|
|
2332
|
+
: []),
|
|
2317
2333
|
...buildTranscriptFromSessionHistory(session.history),
|
|
2318
2334
|
]);
|
|
2319
2335
|
await remountTui();
|
|
@@ -3047,6 +3063,13 @@ export async function runClientInteractive({ appendPromptHistory, authConfig, de
|
|
|
3047
3063
|
title: 'Approvals',
|
|
3048
3064
|
});
|
|
3049
3065
|
}
|
|
3066
|
+
else if (decision.kind === 'always-origin') {
|
|
3067
|
+
appendTurnAwareEntry({
|
|
3068
|
+
body: `Allowed for the rest of this session: browser actions on ${decision.origin}.`,
|
|
3069
|
+
kind: 'system',
|
|
3070
|
+
title: 'Approvals',
|
|
3071
|
+
});
|
|
3072
|
+
}
|
|
3050
3073
|
return decision;
|
|
3051
3074
|
};
|
|
3052
3075
|
const shellInputHandlers = {
|
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.39",
|
|
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",
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"@lydell/node-pty-linux-x64": "1.1.0",
|
|
45
45
|
"@lydell/node-pty-win32-arm64": "1.1.0",
|
|
46
46
|
"@lydell/node-pty-win32-x64": "1.1.0",
|
|
47
|
-
"@thegitai/tui-darwin-arm64": "1.0.0-preview.
|
|
48
|
-
"@thegitai/tui-darwin-x64": "1.0.0-preview.
|
|
49
|
-
"@thegitai/tui-linux-arm64": "1.0.0-preview.
|
|
50
|
-
"@thegitai/tui-linux-x64": "1.0.0-preview.
|
|
51
|
-
"@thegitai/tui-win32-x64": "1.0.0-preview.
|
|
47
|
+
"@thegitai/tui-darwin-arm64": "1.0.0-preview.39",
|
|
48
|
+
"@thegitai/tui-darwin-x64": "1.0.0-preview.39",
|
|
49
|
+
"@thegitai/tui-linux-arm64": "1.0.0-preview.39",
|
|
50
|
+
"@thegitai/tui-linux-x64": "1.0.0-preview.39",
|
|
51
|
+
"@thegitai/tui-win32-x64": "1.0.0-preview.39",
|
|
52
52
|
"@vscode/ripgrep": "1.18.0"
|
|
53
53
|
},
|
|
54
54
|
"repository": {
|