@promptbook/components 0.112.0-139 → 0.112.0-140

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/README.md CHANGED
@@ -35,7 +35,7 @@ Run the standalone VPS installer only on a fresh server. Interactive mode asks f
35
35
  sudo curl -fsSL https://raw.githubusercontent.com/webgptorg/promptbook/refs/heads/main/other/vps/install.sh | bash
36
36
  ```
37
37
 
38
- Non-interactive mode takes defaults from command-line options and skips initial code-runner CLI setup, which can be configured later from the UI or SSH:
38
+ Non-interactive mode takes defaults from command-line options. When `--openai-api-key` is provided with the default OpenAI Codex runner, the installer installs and configures Codex automatically; other runner authentication can be configured later from the UI or SSH:
39
39
 
40
40
  ```bash
41
41
  sudo curl -fsSL https://raw.githubusercontent.com/webgptorg/promptbook/refs/heads/main/other/vps/install.sh | bash -s -- \
package/esm/index.es.js CHANGED
@@ -41,7 +41,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
41
41
  * @generated
42
42
  * @see https://github.com/webgptorg/promptbook
43
43
  */
44
- const PROMPTBOOK_ENGINE_VERSION = '0.112.0-139';
44
+ const PROMPTBOOK_ENGINE_VERSION = '0.112.0-140';
45
45
  /**
46
46
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
47
47
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -34426,21 +34426,6 @@ function renderToolCallChip(chip, onToolCallClick) {
34426
34426
  }, "aria-busy": isOngoing, children: [chip.teamAgentData && (jsx(AgentChip, { agent: chip.teamAgentData, className: chip.isTransitive ? styles$7.transitiveAgentChip : styles$7.teamAgentChip, isClickable: false })), jsx("span", { className: styles$7.toolCallLabel, children: chip.label }), jsx("span", { className: styles$7.toolCallChipStatus, children: isOngoing ? (jsx("span", { className: styles$7.toolCallChipSpinner, "aria-hidden": "true" })) : hasErrors ? ('⚠️') : null })] }, chip.key));
34427
34427
  }
34428
34428
 
34429
- /**
34430
- * Tool call name emitted while preparing a GPT assistant for an agent.
34431
- *
34432
- * @public exported from `@promptbook/types`
34433
- */
34434
- const ASSISTANT_PREPARATION_TOOL_CALL_NAME = 'assistant_preparation';
34435
- /**
34436
- * Checks whether a tool call is the assistant preparation marker.
34437
- *
34438
- * @public exported from `@promptbook/types`
34439
- */
34440
- function isAssistantPreparationToolCall(toolCall) {
34441
- return toolCall.name === ASSISTANT_PREPARATION_TOOL_CALL_NAME;
34442
- }
34443
-
34444
34429
  /**
34445
34430
  * Constant for raw tool call ID fields.
34446
34431
  */
@@ -34492,6 +34477,21 @@ function getArgumentsKey(value) {
34492
34477
  }
34493
34478
  }
34494
34479
 
34480
+ /**
34481
+ * Tool call name emitted while preparing a GPT assistant for an agent.
34482
+ *
34483
+ * @public exported from `@promptbook/types`
34484
+ */
34485
+ const ASSISTANT_PREPARATION_TOOL_CALL_NAME = 'assistant_preparation';
34486
+ /**
34487
+ * Checks whether a tool call is the assistant preparation marker.
34488
+ *
34489
+ * @public exported from `@promptbook/types`
34490
+ */
34491
+ function isAssistantPreparationToolCall(toolCall) {
34492
+ return toolCall.name === ASSISTANT_PREPARATION_TOOL_CALL_NAME;
34493
+ }
34494
+
34495
34495
  /**
34496
34496
  * Builds a stable identity string for tool calls across partial updates.
34497
34497
  *
@@ -35912,6 +35912,27 @@ function shortenMemoryPreview(content) {
35912
35912
  return `${trimmed.slice(0, MEMORY_CHIP_TRUNCATE_LENGTH)}...`;
35913
35913
  }
35914
35914
 
35915
+ /**
35916
+ * Tool calls that stay available in message data but should not be surfaced as user-facing chat progress.
35917
+ *
35918
+ * @private internal utility of `<Chat/>`
35919
+ */
35920
+ const HIDDEN_CHAT_TOOL_CALL_NAMES = new Set([
35921
+ ASSISTANT_PREPARATION_TOOL_CALL_NAME,
35922
+ 'agent_progress',
35923
+ ]);
35924
+ /**
35925
+ * Returns true when one tool call represents a user-facing action.
35926
+ *
35927
+ * @param toolCall - Tool call candidate.
35928
+ * @returns Whether the tool call should be visible in chat progress and chips.
35929
+ *
35930
+ * @private internal utility of `<Chat/>`
35931
+ */
35932
+ function isVisibleChatToolCall(toolCall) {
35933
+ return !HIDDEN_CHAT_TOOL_CALL_NAMES.has(toolCall.name);
35934
+ }
35935
+
35915
35936
  /**
35916
35937
  * Resolves one explicit or inferred lifecycle state for a tool call snapshot.
35917
35938
  *
@@ -35955,19 +35976,13 @@ function createChatMessageToolCallRenderModel(options) {
35955
35976
  transitiveCitations: teamToolCallSummary.citations,
35956
35977
  };
35957
35978
  }
35958
- /**
35959
- * Tool calls that should stay available in message data but never render as chips under the message.
35960
- *
35961
- * @private internal helper of `<ChatMessageItem/>`
35962
- */
35963
- const HIDDEN_TOOL_CALL_CHIP_NAMES = new Set([ASSISTANT_PREPARATION_TOOL_CALL_NAME, 'agent_progress']);
35964
35979
  /**
35965
35980
  * Determines whether one tool call should render as a chip under the message.
35966
35981
  *
35967
35982
  * @private internal helper of `<ChatMessageItem/>`
35968
35983
  */
35969
35984
  function shouldRenderToolCallChip(toolCall) {
35970
- return !HIDDEN_TOOL_CALL_CHIP_NAMES.has(toolCall.name);
35985
+ return isVisibleChatToolCall(toolCall);
35971
35986
  }
35972
35987
  /**
35973
35988
  * Filters a tool-call list down to entries that should render as visible chips.