@lazyingart/agintiflow 0.20.18 → 0.20.19
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/package.json +1 -1
- package/scripts/smoke-cli-chat.js +5 -1
- package/src/interactive-cli.js +10 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lazyingart/agintiflow",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.19",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "AgInTiFlow is a web-first coding agent and CLI with DeepSeek routing, sandboxed tools, model providers, canvas artifacts, and optional wrappers.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -303,9 +303,12 @@ try {
|
|
|
303
303
|
if (!latest.stdout.includes("session=") || !latest.stdout.includes("Interactive agent chat")) {
|
|
304
304
|
throw new Error("bare aginti resume did not open the latest session interactively");
|
|
305
305
|
}
|
|
306
|
-
if (!latest.stdout.includes("resume history") || !latest.stdout.includes("Mock run complete")) {
|
|
306
|
+
if (!latest.stdout.includes("resume history") || !latest.stdout.includes("chat=") || !latest.stdout.includes("Mock run complete")) {
|
|
307
307
|
throw new Error("bare aginti resume did not preview saved chat history");
|
|
308
308
|
}
|
|
309
|
+
if (!latest.stdout.includes("resume note=showing chat transcript only")) {
|
|
310
|
+
throw new Error("bare aginti resume did not clarify that tool/run events are separate from chat history");
|
|
311
|
+
}
|
|
309
312
|
if (latest.stdout.includes("showing=") || latest.stdout.includes("…")) {
|
|
310
313
|
throw new Error("resume history should render full saved messages instead of compact previews");
|
|
311
314
|
}
|
|
@@ -341,6 +344,7 @@ try {
|
|
|
341
344
|
"mock-file-write",
|
|
342
345
|
"run-status",
|
|
343
346
|
"resume-latest",
|
|
347
|
+
"resume-history-metadata",
|
|
344
348
|
"resume-history-full",
|
|
345
349
|
],
|
|
346
350
|
},
|
package/src/interactive-cli.js
CHANGED
|
@@ -1583,16 +1583,24 @@ async function printResumeHistory(state, { limit = 0 } = {}) {
|
|
|
1583
1583
|
if (!state.sessionId) return;
|
|
1584
1584
|
const store = new SessionStore(projectPaths(process.cwd()).sessionsDir, state.sessionId);
|
|
1585
1585
|
const saved = await store.loadState().catch(() => null);
|
|
1586
|
+
const events = await store.loadEvents().catch(() => []);
|
|
1586
1587
|
const chat = Array.isArray(saved?.chat) ? saved.chat.filter((entry) => entry?.content) : [];
|
|
1588
|
+
const metadata = `chat=${chat.length}${events.length > 0 ? ` events=${events.length}` : ""}`;
|
|
1587
1589
|
if (chat.length === 0) {
|
|
1588
|
-
printSystemLine(`resume history session=${state.sessionId}
|
|
1590
|
+
printSystemLine(`resume history session=${state.sessionId} ${metadata}`);
|
|
1591
|
+
if (events.length > 0) {
|
|
1592
|
+
printSystemLine("resume note=showing chat transcript only; model/tool/run events are saved in events.jsonl and artifacts/");
|
|
1593
|
+
}
|
|
1589
1594
|
return;
|
|
1590
1595
|
}
|
|
1591
1596
|
|
|
1592
1597
|
const shown = limit > 0 ? chat.slice(-limit) : chat;
|
|
1593
1598
|
printSystemLine(
|
|
1594
|
-
`resume history session=${state.sessionId}
|
|
1599
|
+
`resume history session=${state.sessionId} ${metadata}${limit > 0 ? ` showing=${shown.length}/${chat.length}` : ""}`
|
|
1595
1600
|
);
|
|
1601
|
+
if (events.length > chat.length) {
|
|
1602
|
+
printSystemLine("resume note=showing chat transcript only; model/tool/run events are saved in events.jsonl and artifacts/");
|
|
1603
|
+
}
|
|
1596
1604
|
for (const entry of shown) printHistoryEntry(entry);
|
|
1597
1605
|
}
|
|
1598
1606
|
|