@ljoukov/llm 4.0.3 → 4.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 +5 -3
- package/dist/index.cjs +5 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -2857,7 +2857,8 @@ var AgentLoggingSessionImpl = class {
|
|
|
2857
2857
|
callCounter = 0;
|
|
2858
2858
|
constructor(config) {
|
|
2859
2859
|
this.workspaceDir = path3.resolve(config.workspaceDir ?? process.cwd());
|
|
2860
|
-
|
|
2860
|
+
const configuredCallLogsDir = typeof config.callLogsDir === "string" ? config.callLogsDir.trim() : "";
|
|
2861
|
+
this.logsRootDir = configuredCallLogsDir.length > 0 ? path3.resolve(this.workspaceDir, configuredCallLogsDir) : path3.join(this.workspaceDir, "llm_calls");
|
|
2861
2862
|
this.mirrorToConsole = config.mirrorToConsole !== false;
|
|
2862
2863
|
this.sink = config.sink;
|
|
2863
2864
|
this.agentLogPath = path3.join(this.workspaceDir, "agent.log");
|
|
@@ -9595,7 +9596,7 @@ async function runAccessHook2(runtime, context) {
|
|
|
9595
9596
|
}
|
|
9596
9597
|
function isCodexModel(model) {
|
|
9597
9598
|
const normalized = model.startsWith("chatgpt-") ? model.slice("chatgpt-".length) : model;
|
|
9598
|
-
return normalized.includes("codex");
|
|
9599
|
+
return normalized.includes("codex") || normalized === "gpt-5.4" || normalized === "gpt-5.4-fast";
|
|
9599
9600
|
}
|
|
9600
9601
|
function isGeminiModel(model) {
|
|
9601
9602
|
return model.startsWith("gemini-");
|
|
@@ -10302,9 +10303,10 @@ function createRootAgentLoggingSession(request) {
|
|
|
10302
10303
|
if (!selected) {
|
|
10303
10304
|
return void 0;
|
|
10304
10305
|
}
|
|
10306
|
+
const workspaceDir = typeof selected.workspaceDir === "string" && selected.workspaceDir.trim().length > 0 ? path7.resolve(selected.workspaceDir) : resolveWorkspaceDirForLogging(request);
|
|
10305
10307
|
return createAgentLoggingSession({
|
|
10306
10308
|
...selected,
|
|
10307
|
-
workspaceDir
|
|
10309
|
+
workspaceDir,
|
|
10308
10310
|
mirrorToConsole: selected.mirrorToConsole !== false
|
|
10309
10311
|
});
|
|
10310
10312
|
}
|