gcf-board 0.16.4 → 0.16.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/dist/server/talks.js +5 -1
- package/package.json +1 -1
package/dist/server/talks.js
CHANGED
|
@@ -14,6 +14,7 @@ import { fileURLToPath } from 'node:url';
|
|
|
14
14
|
import { THREAD_ID, createThread, defaultsOf, listThreads, presetsOf, readThread, setThreadAgent, threadAgent, threadDir, threadOf, threadOfEntry, } from 'gcf-session';
|
|
15
15
|
import { runModeOf } from '../shared/board.js';
|
|
16
16
|
import { writeAtomic } from './atomic.js';
|
|
17
|
+
import { briefError } from './cli.js';
|
|
17
18
|
import { alive } from './events.js';
|
|
18
19
|
import { HttpError } from './http-error.js';
|
|
19
20
|
import { IMAGE_EXT } from './chat.js';
|
|
@@ -495,7 +496,10 @@ export async function acceptProposal(p, t, id, move, item, ids, run, mark) {
|
|
|
495
496
|
});
|
|
496
497
|
const r = await run();
|
|
497
498
|
await setRecord(td, id, {
|
|
498
|
-
|
|
499
|
+
// The card shows the core's refusal, not node's stack around it.
|
|
500
|
+
...(r.ok
|
|
501
|
+
? { state: 'accepted', item }
|
|
502
|
+
: { state: 'refused', error: briefError(r.err || r.out) }),
|
|
499
503
|
at: now(),
|
|
500
504
|
});
|
|
501
505
|
return r;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gcf-board",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.5",
|
|
4
4
|
"description": "A local web board for GCF game projects: shows `gcf board --json` and runs the same ai-factory gcf commands an operator runs in a console",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|