@dimi-agent/cli 0.6.13 → 0.6.15
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/dist/main.mjs +20 -2
- package/package.json +5 -5
package/dist/main.mjs
CHANGED
|
@@ -214472,7 +214472,9 @@ var init_rustEngineTurnRunner = __esmMin((() => {
|
|
|
214472
214472
|
startQueuedTurn(entry) {
|
|
214473
214473
|
this.turnRunning = true;
|
|
214474
214474
|
this.executingTurnId = entry.turnId;
|
|
214475
|
-
this.runTurnNow(entry.turnId, entry.payload.origin).catch(() =>
|
|
214475
|
+
this.runTurnNow(entry.turnId, entry.payload.origin).catch((error) => {
|
|
214476
|
+
this.log.error("[rustEngineTurnRunner] turn failed to start", { error });
|
|
214477
|
+
}).finally(() => {
|
|
214476
214478
|
this.turnRunning = false;
|
|
214477
214479
|
this.executingTurnId = void 0;
|
|
214478
214480
|
if (this.disposed) {
|
|
@@ -389118,6 +389120,7 @@ var init_session_replay = __esmMin((() => {
|
|
|
389118
389120
|
return false;
|
|
389119
389121
|
} finally {
|
|
389120
389122
|
this.host.setAppState({ isReplaying: false });
|
|
389123
|
+
this.host.flushQueuedMessages();
|
|
389121
389124
|
}
|
|
389122
389125
|
}
|
|
389123
389126
|
hydrateSnapshot(agent) {
|
|
@@ -393598,7 +393601,9 @@ var init_dimi_tui = __esmMin((() => {
|
|
|
393598
393601
|
}
|
|
393599
393602
|
if (text.trim().length === 0) return;
|
|
393600
393603
|
if (this.state.appState.isReplaying) {
|
|
393601
|
-
this.
|
|
393604
|
+
this.enqueueMessage(text, void 0, wasBashMode ? "bash" : "prompt");
|
|
393605
|
+
this.updateQueueDisplay();
|
|
393606
|
+
this.state.ui.requestRender();
|
|
393602
393607
|
return;
|
|
393603
393608
|
}
|
|
393604
393609
|
const historyText = wasBashMode ? `!${text}` : text;
|
|
@@ -393809,6 +393814,19 @@ var init_dimi_tui = __esmMin((() => {
|
|
|
393809
393814
|
});
|
|
393810
393815
|
});
|
|
393811
393816
|
}
|
|
393817
|
+
/** Dispatch every queued message to the active session (replay finished,
|
|
393818
|
+
* shell finished, compaction finished). Used by the replay renderer to
|
|
393819
|
+
* flush input that was queued while history was rendering. */
|
|
393820
|
+
flushQueuedMessages() {
|
|
393821
|
+
const session = this.session;
|
|
393822
|
+
if (session === void 0) return;
|
|
393823
|
+
while (this.state.queuedMessages.length > 0) {
|
|
393824
|
+
const item = this.shiftQueuedMessage();
|
|
393825
|
+
if (item === void 0) break;
|
|
393826
|
+
this.sendQueuedMessage(session, item);
|
|
393827
|
+
}
|
|
393828
|
+
this.updateQueueDisplay();
|
|
393829
|
+
}
|
|
393812
393830
|
sendMessageInternal(session, input, options) {
|
|
393813
393831
|
const imageAttachmentIds = options?.imageAttachmentIds !== void 0 && options.imageAttachmentIds.length > 0 ? options.imageAttachmentIds : void 0;
|
|
393814
393832
|
this.appendTranscriptEntry({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dimi-agent/cli",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.15",
|
|
4
4
|
"description": "The Starting Point for Next-Gen Agents",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|
|
@@ -60,14 +60,14 @@
|
|
|
60
60
|
"tsx": "^4.21.0",
|
|
61
61
|
"yazl": "^3.3.1",
|
|
62
62
|
"zod": "^4.3.6",
|
|
63
|
-
"@dimi-agent/dimi-oauth": "^0.1.0",
|
|
64
63
|
"@dimi-agent/agent-core-v2": "^0.1.0",
|
|
64
|
+
"@dimi-agent/dimi-oauth": "^0.1.0",
|
|
65
65
|
"@dimi-agent/dimi-telemetry": "^0.1.0",
|
|
66
|
-
"@dimi-agent/dimi-web": "^0.1.0",
|
|
67
66
|
"@dimi-agent/dimi-sdk": "^0.2.0",
|
|
67
|
+
"@dimi-agent/dimi-web": "^0.1.0",
|
|
68
|
+
"@dimi-agent/kap-server": "^0.1.0",
|
|
68
69
|
"@dimi-agent/pi-tui": "^0.1.0",
|
|
69
|
-
"@dimi-agent/remote": "^0.1.0"
|
|
70
|
-
"@dimi-agent/kap-server": "^0.1.0"
|
|
70
|
+
"@dimi-agent/remote": "^0.1.0"
|
|
71
71
|
},
|
|
72
72
|
"optionalDependencies": {
|
|
73
73
|
"@dimi-agent/dimi-native-darwin-arm64": ">=0.5.3 <1",
|