@rhizogrip/spore-cli 1.20.0 → 1.21.0
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 +2 -2
- package/tui/conversation.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rhizogrip/spore-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.21.0",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Christophe Le Bars",
|
|
6
6
|
"email": "clb@toort.net"
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"tui": "node bin/spore.js tui"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@rhizogrip/spore": "1.
|
|
53
|
+
"@rhizogrip/spore": "1.21.0",
|
|
54
54
|
"chalk": "^6.0.1",
|
|
55
55
|
"minimist": "^1.2.8"
|
|
56
56
|
},
|
package/tui/conversation.js
CHANGED
|
@@ -33,7 +33,7 @@ const said = (entry) => ({ kind: 'said', inboxNo: entry.inboxNo, origin: originO
|
|
|
33
33
|
export function history ({ turns, inbox }) {
|
|
34
34
|
const items = []
|
|
35
35
|
for (const turn of turns) {
|
|
36
|
-
for (const entry of inbox.filter(e => e.inboxNo > turn.inboxFrom && e.inboxNo <= turn.inboxTo && !e.setAside)) items.push(said(entry))
|
|
36
|
+
for (const entry of inbox.filter(e => e.inboxNo > turn.inboxFrom && e.inboxNo <= turn.inboxTo && !e.setAside && !e.overheard)) items.push(said(entry))
|
|
37
37
|
if (turn.output) items.push({ kind: 'answer', text: printable(turn.output) })
|
|
38
38
|
items.push({
|
|
39
39
|
kind: 'end',
|
|
@@ -46,7 +46,7 @@ export function history ({ turns, inbox }) {
|
|
|
46
46
|
durationMs: turn.startedAt && turn.endedAt ? Date.parse(turn.endedAt) - Date.parse(turn.startedAt) : null
|
|
47
47
|
})
|
|
48
48
|
}
|
|
49
|
-
for (const entry of inbox.filter(e => !e.consumed && !e.setAside)) items.push({ ...said(entry), waiting: true })
|
|
49
|
+
for (const entry of inbox.filter(e => !e.consumed && !e.setAside && !e.overheard)) items.push({ ...said(entry), waiting: true })
|
|
50
50
|
return items
|
|
51
51
|
}
|
|
52
52
|
|