gcf-board 0.18.4 → 0.18.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.
@@ -4,8 +4,8 @@
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>GCF board</title>
7
- <script type="module" crossorigin src="/assets/index-CV00U5y_.js"></script>
8
- <link rel="stylesheet" crossorigin href="/assets/index-r-gA2aJJ.css">
7
+ <script type="module" crossorigin src="/assets/index-Pv8r1y-f.js"></script>
8
+ <link rel="stylesheet" crossorigin href="/assets/index-CeIBZt2A.css">
9
9
  </head>
10
10
  <body>
11
11
  <div id="root"></div>
@@ -16,6 +16,7 @@ import {
16
16
  import { homedir } from 'node:os';
17
17
  import path from 'node:path';
18
18
  import { CHAT_FLAGS, encode as claudeInput } from './adapter/claude.js';
19
+ import { kindOf } from './activity.js';
19
20
 
20
21
  export { CHAT_FLAGS };
21
22
 
@@ -531,7 +532,14 @@ async function decided(c, requestId, { allow, by = 'operator', always = false })
531
532
  if (!allow) {
532
533
  send(c, c.encode.deny(requestId, `the operator refused: ${title}`));
533
534
 
534
- return post(c, { type: 'denied', request_id: requestId, tool: card.tool, by, title });
535
+ return post(c, {
536
+ type: 'denied',
537
+ request_id: requestId,
538
+ tool: card.tool,
539
+ kind: kindOf(card.tool),
540
+ by,
541
+ title,
542
+ });
535
543
  }
536
544
 
537
545
  let rule = always ? card.always : null;
@@ -724,7 +732,7 @@ function permit(c, e) {
724
732
  /** Refuse a tool call (`{request_id, tool}`) by the engine's own word, with no card before it. */
725
733
  function refuse(c, { request_id: requestId, tool }, message, more = {}) {
726
734
  send(c, c.encode.deny(requestId, message));
727
- post(c, { type: 'denied', tool, by: 'engine', ...more });
735
+ post(c, { type: 'denied', tool, kind: kindOf(tool), by: 'engine', ...more });
728
736
  }
729
737
 
730
738
  // What the operator reads of each neutral event of the session, by its type.
@@ -759,6 +767,8 @@ const SEEN = {
759
767
  post(c, {
760
768
  type: 'denied',
761
769
  tool: e.tool,
770
+ // The kind a card names (shell, edit…): the board folds the refusal into a line under it.
771
+ kind: kindOf(e.tool),
762
772
  by: 'rule',
763
773
  ...(call ? { title: cut(call.title, TITLE_MAX), ...refusedBy(c.deny, call) } : {}),
764
774
  ...(why ? { description: cut(why, WHY_MAX) } : {}),
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gcf-session",
3
- "version": "0.17.4",
3
+ "version": "0.17.5",
4
4
  "private": true,
5
5
  "description": "The session engine of GCF: one agent session and a run as a chain of them, the chat protocol, the provider adapters. Bundled by gcf-harness-aif-ext and gcf-board, never published.",
6
6
  "type": "module",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gcf-board",
3
- "version": "0.18.4",
3
+ "version": "0.18.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",