@bike4mind/cli 0.2.66 → 0.2.67-feat-tavern-leveling-system.21886

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.
@@ -1718,6 +1718,11 @@ const SceneCommandSchema = z.discriminatedUnion("type", [
1718
1718
  row: z.number(),
1719
1719
  gid: z.number()
1720
1720
  }))
1721
+ }),
1722
+ z.object({
1723
+ type: z.literal("update_metadata"),
1724
+ id: z.string(),
1725
+ patch: z.record(z.string(), z.unknown())
1721
1726
  })
1722
1727
  ]);
1723
1728
  /** Client → Server: send scene commands to broadcast to all HUD clients */
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { spawn } from "child_process";
3
3
  import path from "path";
4
- //#region ../../b4m-core/packages/services/dist/bashExecute-BTkdqlSs.mjs
4
+ //#region ../../b4m-core/packages/services/dist/bashExecute-CFg0Cl-k.mjs
5
5
  const DEFAULT_TIMEOUT_MS = 6e4;
6
6
  const MAX_OUTPUT_SIZE = 100 * 1024;
7
7
  /**
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { i as version, n as fetchLatestVersion, r as forceCheckForUpdate } from "../updateChecker-CsRms3Og.mjs";
2
+ import { i as version, n as fetchLatestVersion, r as forceCheckForUpdate } from "../updateChecker-B5ZT3pvq.mjs";
3
3
  import { execSync } from "child_process";
4
4
  import { constants, existsSync, promises } from "fs";
5
5
  import { homedir } from "os";
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { I as isReadOnlyTool, L as ReActAgent, M as setWebSocketToolExecutor, P as buildCoreSystemPrompt, R as CustomCommandStore, S as getApiUrl, T as generateCliTools, V as SessionStore, _ as McpManager, a as createBackgroundAgentTools, c as AgentStore, f as ApiClient, g as ServerLlmBackend, h as WebSocketLlmBackend, i as createWriteTodosTool, l as SubagentOrchestrator, m as WebSocketConnectionManager, n as createFindDefinitionTool, o as BackgroundAgentManager, p as WebSocketToolExecutor, r as createTodoStore, s as createAgentDelegateTool, t as createGetFileStructureTool, u as createSkillTool, w as PermissionManager, x as loadContextFiles, z as CheckpointStore } from "../tools-BHNW_X-R.mjs";
3
- import { n as logger, t as ConfigStore } from "../ConfigStore-DRYo2iO1.mjs";
2
+ import { I as isReadOnlyTool, L as ReActAgent, M as setWebSocketToolExecutor, P as buildCoreSystemPrompt, R as CustomCommandStore, S as getApiUrl, T as generateCliTools, V as SessionStore, _ as McpManager, a as createBackgroundAgentTools, c as AgentStore, f as ApiClient, g as ServerLlmBackend, h as WebSocketLlmBackend, i as createWriteTodosTool, l as SubagentOrchestrator, m as WebSocketConnectionManager, n as createFindDefinitionTool, o as BackgroundAgentManager, p as WebSocketToolExecutor, r as createTodoStore, s as createAgentDelegateTool, t as createGetFileStructureTool, u as createSkillTool, w as PermissionManager, x as loadContextFiles, z as CheckpointStore } from "../tools-z7qOGuuF.mjs";
3
+ import { n as logger, t as ConfigStore } from "../ConfigStore-Ylkl1TGh.mjs";
4
4
  import { t as DEFAULT_SANDBOX_CONFIG } from "../types-DBEjF9YS.mjs";
5
5
  import { t as createSandboxRuntime } from "../SandboxRuntimeAdapter-C1B4t20N.mjs";
6
6
  import { t as SandboxOrchestrator } from "../SandboxOrchestrator-BEW3rqYi.mjs";
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { t as ConfigStore } from "../ConfigStore-DRYo2iO1.mjs";
2
+ import { t as ConfigStore } from "../ConfigStore-Ylkl1TGh.mjs";
3
3
  //#region src/commands/mcpCommand.ts
4
4
  /**
5
5
  * External MCP commands (b4m mcp list, b4m mcp add, etc.)
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { i as version, r as forceCheckForUpdate } from "../updateChecker-CsRms3Og.mjs";
2
+ import { i as version, r as forceCheckForUpdate } from "../updateChecker-B5ZT3pvq.mjs";
3
3
  import { execSync } from "child_process";
4
4
  //#region src/commands/updateCommand.ts
5
5
  /**
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
- import { t as assertPathAllowed } from "./pathValidation-Cgjh5WQO-DiCZTcq6.mjs";
2
+ import { t as assertPathAllowed } from "./pathValidation-B8P0stPW-DMWmrxnc.mjs";
3
3
  import { existsSync, promises } from "fs";
4
4
  import path from "path";
5
- //#region ../../b4m-core/packages/services/dist/createFile-yQfh8uvk.mjs
5
+ //#region ../../b4m-core/packages/services/dist/createFile-U1V-Ael_.mjs
6
6
  async function createFile(params, allowedDirectories) {
7
7
  const { path: filePath, content, createDirectories = true } = params;
8
8
  const resolvedPath = assertPathAllowed(filePath, allowedDirectories, "create");
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
- import { t as assertPathAllowed } from "./pathValidation-Cgjh5WQO-DiCZTcq6.mjs";
2
+ import { t as assertPathAllowed } from "./pathValidation-B8P0stPW-DMWmrxnc.mjs";
3
3
  import { existsSync, promises, statSync } from "fs";
4
4
  import path from "path";
5
- //#region ../../b4m-core/packages/services/dist/deleteFile-DKHfnyny.mjs
5
+ //#region ../../b4m-core/packages/services/dist/deleteFile-BFsQ8m7A.mjs
6
6
  async function deleteFile(params, allowedDirectories) {
7
7
  const { path: filePath, recursive = false } = params;
8
8
  const resolvedPath = assertPathAllowed(filePath, allowedDirectories, "delete");
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
- import { n as isPathAllowed } from "./pathValidation-Cgjh5WQO-DiCZTcq6.mjs";
2
+ import { n as isPathAllowed } from "./pathValidation-B8P0stPW-DMWmrxnc.mjs";
3
3
  import path from "path";
4
4
  import { stat } from "fs/promises";
5
5
  import { glob } from "glob";
6
- //#region ../../b4m-core/packages/services/dist/globFiles-D1en6joM.mjs
6
+ //#region ../../b4m-core/packages/services/dist/globFiles-Cm98oQml.mjs
7
7
  const DEFAULT_IGNORE_PATTERNS = [
8
8
  "**/node_modules/**",
9
9
  "**/.git/**",
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
- import { n as isPathAllowed } from "./pathValidation-Cgjh5WQO-DiCZTcq6.mjs";
2
+ import { n as isPathAllowed } from "./pathValidation-B8P0stPW-DMWmrxnc.mjs";
3
3
  import { execFile, execFileSync } from "child_process";
4
4
  import { existsSync } from "fs";
5
5
  import path from "path";
6
6
  import { stat } from "fs/promises";
7
7
  import { promisify } from "util";
8
8
  import { createRequire } from "module";
9
- //#region ../../b4m-core/packages/services/dist/grepSearch-aMamoBn_.mjs
9
+ //#region ../../b4m-core/packages/services/dist/grepSearch-Dqpkuj21.mjs
10
10
  const execFileAsync = promisify(execFile);
11
11
  const require = createRequire(import.meta.url);
12
12
  /** Cached ripgrep binary path after first resolution */
package/dist/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import { n as useCliStore, t as selectActiveBackgroundAgents } from "./store-Dw1nZX2Y.mjs";
3
- import { A as clearFeatureModuleTools, B as CommandHistoryStore, C as getEnvironmentName, D as DEFAULT_AGENT_MODEL, E as ALWAYS_DENIED_FOR_AGENTS, F as buildSkillsPromptSection, G as searchCommands, H as OAuthClient, I as isReadOnlyTool, J as searchFiles, K as mergeCommands, L as ReActAgent, M as setWebSocketToolExecutor, N as OllamaBackend, O as DEFAULT_MAX_ITERATIONS, P as buildCoreSystemPrompt, R as CustomCommandStore, S as getApiUrl, T as generateCliTools, U as hasFileReferences, V as SessionStore, W as processFileReferences, Y as warmFileCache, _ as McpManager, a as createBackgroundAgentTools, b as extractCompactInstructions, c as AgentStore, d as parseAgentConfig, f as ApiClient, g as ServerLlmBackend, h as WebSocketLlmBackend, i as createWriteTodosTool, j as registerFeatureModuleTools, k as DEFAULT_THOROUGHNESS, l as SubagentOrchestrator, m as WebSocketConnectionManager, n as createFindDefinitionTool, o as BackgroundAgentManager, p as WebSocketToolExecutor, q as formatFileSize, r as createTodoStore, s as createAgentDelegateTool, t as createGetFileStructureTool, u as createSkillTool, v as substituteArguments, w as PermissionManager, x as loadContextFiles, y as formatStep, z as CheckpointStore } from "./tools-BHNW_X-R.mjs";
4
- import { Dt as validateNotebookPath$1, Et as validateJupyterKernelName, g as ChatModels, m as CREDIT_DEDUCT_TRANSACTION_TYPES, n as logger, t as ConfigStore } from "./ConfigStore-DRYo2iO1.mjs";
5
- import { i as version, t as checkForUpdate } from "./updateChecker-CsRms3Og.mjs";
3
+ import { A as clearFeatureModuleTools, B as CommandHistoryStore, C as getEnvironmentName, D as DEFAULT_AGENT_MODEL, E as ALWAYS_DENIED_FOR_AGENTS, F as buildSkillsPromptSection, G as searchCommands, H as OAuthClient, I as isReadOnlyTool, J as searchFiles, K as mergeCommands, L as ReActAgent, M as setWebSocketToolExecutor, N as OllamaBackend, O as DEFAULT_MAX_ITERATIONS, P as buildCoreSystemPrompt, R as CustomCommandStore, S as getApiUrl, T as generateCliTools, U as hasFileReferences, V as SessionStore, W as processFileReferences, Y as warmFileCache, _ as McpManager, a as createBackgroundAgentTools, b as extractCompactInstructions, c as AgentStore, d as parseAgentConfig, f as ApiClient, g as ServerLlmBackend, h as WebSocketLlmBackend, i as createWriteTodosTool, j as registerFeatureModuleTools, k as DEFAULT_THOROUGHNESS, l as SubagentOrchestrator, m as WebSocketConnectionManager, n as createFindDefinitionTool, o as BackgroundAgentManager, p as WebSocketToolExecutor, q as formatFileSize, r as createTodoStore, s as createAgentDelegateTool, t as createGetFileStructureTool, u as createSkillTool, v as substituteArguments, w as PermissionManager, x as loadContextFiles, y as formatStep, z as CheckpointStore } from "./tools-z7qOGuuF.mjs";
4
+ import { Dt as validateNotebookPath$1, Et as validateJupyterKernelName, g as ChatModels, m as CREDIT_DEDUCT_TRANSACTION_TYPES, n as logger, t as ConfigStore } from "./ConfigStore-Ylkl1TGh.mjs";
5
+ import { i as version, t as checkForUpdate } from "./updateChecker-B5ZT3pvq.mjs";
6
6
  import React, { useCallback, useEffect, useMemo, useReducer, useRef, useState } from "react";
7
7
  import { Box, Static, Text, render, useApp, useInput } from "ink";
8
8
  import { execSync } from "child_process";
@@ -22,7 +22,7 @@ import jwt from "jsonwebtoken";
22
22
  import open from "open";
23
23
  import axios, { isAxiosError } from "axios";
24
24
  import { get_encoding } from "tiktoken";
25
- import WebSocket from "ws";
25
+ import WsWebSocket from "ws";
26
26
  //#region src/components/StatusBar.tsx
27
27
  const StatusBar = React.memo(function StatusBar({ sessionName, model, tokenUsage, creditsUsage }) {
28
28
  const autoAcceptEdits = useCliStore((state) => state.autoAcceptEdits);
@@ -2798,14 +2798,14 @@ var JupyterClient = class {
2798
2798
  let executionCount = null;
2799
2799
  let hasError = false;
2800
2800
  let errorInfo;
2801
- const ws = new WebSocket(wsUrl);
2801
+ const ws = new WsWebSocket(wsUrl);
2802
2802
  const timeoutHandle = setTimeout(() => {
2803
2803
  cleanup();
2804
2804
  reject(new JupyterClientError(`Cell execution timed out after ${timeoutMs}ms`));
2805
2805
  }, timeoutMs);
2806
2806
  const cleanup = () => {
2807
2807
  clearTimeout(timeoutHandle);
2808
- if (ws.readyState === WebSocket.OPEN || ws.readyState === WebSocket.CONNECTING) ws.close();
2808
+ if (ws.readyState === WsWebSocket.OPEN || ws.readyState === WsWebSocket.CONNECTING) ws.close();
2809
2809
  };
2810
2810
  ws.on("error", (err) => {
2811
2811
  cleanup();
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { realpathSync } from "fs";
3
3
  import path from "path";
4
- //#region ../../b4m-core/packages/services/dist/pathValidation-Cgjh5WQO.mjs
4
+ //#region ../../b4m-core/packages/services/dist/pathValidation-B8P0stPW.mjs
5
5
  /**
6
6
  * Resolves a path to its canonical form, following symlinks.
7
7
  * If the path doesn't exist (e.g., file being created), resolves the