@bike4mind/cli 4.9.0 → 4.10.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.
Files changed (32) hide show
  1. package/dist/{AgentHistoryStore-jktM0SmD.mjs → AgentHistoryStore-CjGVgxLR.mjs} +186 -586
  2. package/dist/{ApiClient-CczpydlW.mjs → ApiClient-SVXSI3HI.mjs} +3 -3
  3. package/dist/{BubblewrapRuntime-aGfDSJPY.mjs → BubblewrapRuntime-CTc_KPnd.mjs} +2 -2
  4. package/dist/{ConfigStore-CO6kREaL.mjs → ConfigStore-B2Dy-PT9.mjs} +6 -7
  5. package/dist/ConfigStore-zlY0PikB.mjs +2 -0
  6. package/dist/{Logger-CHKCF5hd.mjs → Logger-7MmrU5w6.mjs} +1667 -946
  7. package/dist/{SandboxOrchestrator-ULWvuUct.mjs → SandboxOrchestrator-CeDwd6Fj.mjs} +1 -1
  8. package/dist/{SandboxRuntimeAdapter-FpZRkE6D.mjs → SandboxRuntimeAdapter-CFEIywKt.mjs} +1 -1
  9. package/dist/{SandboxRuntimeAdapter-DpDSET-A.mjs → SandboxRuntimeAdapter-CjNDzYSf.mjs} +2 -2
  10. package/dist/{SeatbeltRuntime-C0GJ3nnY.mjs → SeatbeltRuntime-CQItj-F1.mjs} +2 -2
  11. package/dist/{WorkItemsClient-aCxMV_Wm.mjs → WorkItemsClient-C9_pjHCo.mjs} +3 -4
  12. package/dist/{buildToolSearch-CbLeZ5wP.mjs → buildToolSearch-8xyBwXRx.mjs} +2 -2
  13. package/dist/commands/acpCommand.mjs +6 -7
  14. package/dist/commands/apiCommand.mjs +1 -1
  15. package/dist/commands/doctorCommand.mjs +2 -2
  16. package/dist/commands/envCommand.mjs +1 -1
  17. package/dist/commands/headlessCommand.mjs +10 -11
  18. package/dist/commands/mcpCommand.mjs +3 -3
  19. package/dist/commands/mirrorCommand.mjs +2 -2
  20. package/dist/commands/modelsCommand.mjs +4 -4
  21. package/dist/commands/pluginCommand.mjs +1 -1
  22. package/dist/commands/skillsCommand.mjs +3 -3
  23. package/dist/commands/updateCommand.mjs +2 -2
  24. package/dist/{dist-BOxr8LQA.mjs → dist-DHgMhdzV.mjs} +5443 -217
  25. package/dist/{fit-BHDTSpfd.mjs → fit-D8Quui6j.mjs} +3 -3
  26. package/dist/index.mjs +453 -48
  27. package/dist/{modelServers-CVufZd1f.mjs → modelServers-JsKBm7Wn.mjs} +1 -1
  28. package/dist/{package-TACInPbw.mjs → package-r_xumsGY.mjs} +1 -1
  29. package/dist/{serve-OywSzShu.mjs → serve-BM9PKMLH.mjs} +301 -155
  30. package/dist/{updateChecker-5v_8LhXy.mjs → updateChecker-BOqaLeZU.mjs} +1 -1
  31. package/package.json +10 -42
  32. package/dist/ConfigStore-BAJ4hIHa.mjs +0 -2
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
- import { b as AuthenticatedApiClient, t as ConfigStore, x as DeviceFlowClient } from "./ConfigStore-CO6kREaL.mjs";
3
- import { t as logger } from "./Logger-CHKCF5hd.mjs";
4
- import { t as version } from "./package-TACInPbw.mjs";
2
+ import { b as AuthenticatedApiClient, t as ConfigStore, x as DeviceFlowClient } from "./ConfigStore-B2Dy-PT9.mjs";
3
+ import { t as logger } from "./Logger-7MmrU5w6.mjs";
4
+ import { t as version } from "./package-r_xumsGY.mjs";
5
5
  import { isAxiosError } from "axios";
6
6
  import { Readable } from "node:stream";
7
7
  //#region src/auth/OAuthClient.ts
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { t as logger } from "./Logger-CHKCF5hd.mjs";
3
- import { a as getContainerSocketPaths, c as resolveSandboxPath, o as getProtectedWorkspacePaths, s as isBinaryAvailable, t as assertProxyPort } from "./SandboxRuntimeAdapter-DpDSET-A.mjs";
2
+ import { t as logger } from "./Logger-7MmrU5w6.mjs";
3
+ import { a as getContainerSocketPaths, c as resolveSandboxPath, o as getProtectedWorkspacePaths, s as isBinaryAvailable, t as assertProxyPort } from "./SandboxRuntimeAdapter-CjNDzYSf.mjs";
4
4
  import { lstatSync, mkdirSync, statSync } from "fs";
5
5
  import os from "os";
6
6
  import path from "path";
@@ -1,11 +1,10 @@
1
1
  #!/usr/bin/env node
2
- import { T as ChatModels, t as logger } from "./Logger-CHKCF5hd.mjs";
2
+ import { T as ChatModels, t as logger } from "./Logger-7MmrU5w6.mjs";
3
3
  import { t as DEFAULT_SANDBOX_CONFIG } from "./types-CxrzVXel.mjs";
4
4
  import { isDeepStrictEqual } from "node:util";
5
5
  import { existsSync, promises } from "fs";
6
6
  import { homedir, hostname } from "os";
7
7
  import path from "path";
8
- import { v4 } from "uuid";
9
8
  import * as path$2 from "node:path";
10
9
  import * as fs from "node:fs";
11
10
  import { z as z$1 } from "zod";
@@ -1172,7 +1171,7 @@ async function isStale(lockPath, staleMs) {
1172
1171
  */
1173
1172
  async function breakIfStale(lockPath, staleMs) {
1174
1173
  if (!await isStale(lockPath, staleMs)) return false;
1175
- const aside = `${lockPath}.${v4()}.stale`;
1174
+ const aside = `${lockPath}.${crypto.randomUUID()}.stale`;
1176
1175
  try {
1177
1176
  await promises.rename(lockPath, aside);
1178
1177
  } catch (error) {
@@ -1273,7 +1272,7 @@ async function release(lockPath, nonce) {
1273
1272
  * LockLostError when the lock was taken from this holder while `work` ran, even if `work` itself succeeded.
1274
1273
  */
1275
1274
  async function withLockDir(lockPath, work, opts) {
1276
- const nonce = v4();
1275
+ const nonce = crypto.randomUUID();
1277
1276
  let lastTouch = await acquire(lockPath, nonce, opts);
1278
1277
  liveNonces.add(nonce);
1279
1278
  const lost = new AbortController();
@@ -1773,7 +1772,7 @@ const CONFIG_SCHEMA_VERSION = "0.3.0";
1773
1772
  */
1774
1773
  const DEFAULT_CONFIG = {
1775
1774
  version: CONFIG_SCHEMA_VERSION,
1776
- userId: v4(),
1775
+ userId: crypto.randomUUID(),
1777
1776
  defaultModel: ChatModels.CLAUDE_5_5_SONNET,
1778
1777
  toolApiKeys: {
1779
1778
  openweather: void 0,
@@ -2493,7 +2492,7 @@ var ConfigStore = class {
2493
2492
  /** Writes through a 0600 temp file and a rename, so a reader in another process never sees a half-written file. */
2494
2493
  async writeConfigFile(contents) {
2495
2494
  const target = await promises.realpath(this.configPath).catch(() => this.configPath);
2496
- const temp = `${target}.${process.pid}.${v4()}.tmp`;
2495
+ const temp = `${target}.${process.pid}.${crypto.randomUUID()}.tmp`;
2497
2496
  try {
2498
2497
  await promises.writeFile(temp, contents, {
2499
2498
  encoding: "utf-8",
@@ -2800,7 +2799,7 @@ var ConfigStore = class {
2800
2799
  async reset() {
2801
2800
  this.globalConfig = {
2802
2801
  ...structuredClone(DEFAULT_CONFIG),
2803
- userId: v4()
2802
+ userId: crypto.randomUUID()
2804
2803
  };
2805
2804
  this.fallbackBase = null;
2806
2805
  this.projectTrusted = false;
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ export { t as ConfigStore } from "./ConfigStore-B2Dy-PT9.mjs";