@bike4mind/cli 4.8.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.
- package/README.md +21 -0
- package/bin/bike4mind-cli.mjs +342 -239
- package/dist/{AgentHistoryStore-Bvmcy2kf.mjs → AgentHistoryStore-CjGVgxLR.mjs} +305 -644
- package/dist/{ApiClient-Yp2LPlX3.mjs → ApiClient-SVXSI3HI.mjs} +3 -3
- package/dist/{BubblewrapRuntime-OI4qFPNB.mjs → BubblewrapRuntime-CTc_KPnd.mjs} +2 -2
- package/dist/{ConfigStore-CP1W86Ui.mjs → ConfigStore-B2Dy-PT9.mjs} +7 -8
- package/dist/ConfigStore-zlY0PikB.mjs +2 -0
- package/dist/{Logger-3RbeTZ9o.mjs → Logger-7MmrU5w6.mjs} +4845 -1126
- package/dist/{SandboxOrchestrator-lpxVEFO7.mjs → SandboxOrchestrator-CeDwd6Fj.mjs} +1 -1
- package/dist/{SandboxRuntimeAdapter-u6c_IrjP.mjs → SandboxRuntimeAdapter-CFEIywKt.mjs} +1 -1
- package/dist/{SandboxRuntimeAdapter-C3xICJtQ.mjs → SandboxRuntimeAdapter-CjNDzYSf.mjs} +2 -2
- package/dist/{SeatbeltRuntime-Ccd_QbjX.mjs → SeatbeltRuntime-CQItj-F1.mjs} +2 -2
- package/dist/{WorkItemsClient-D4sFGL9X.mjs → WorkItemsClient-C9_pjHCo.mjs} +3 -4
- package/dist/{buildToolSearch-CqHKSLtG.mjs → buildToolSearch-8xyBwXRx.mjs} +2 -2
- package/dist/commands/acpCommand.mjs +6 -7
- package/dist/commands/apiCommand.mjs +1 -1
- package/dist/commands/doctorCommand.mjs +2 -2
- package/dist/commands/envCommand.mjs +1 -1
- package/dist/commands/headlessCommand.mjs +10 -11
- package/dist/commands/hostCommand.mjs +1 -1
- package/dist/commands/mcpCommand.mjs +3 -3
- package/dist/commands/mirrorCommand.mjs +2 -2
- package/dist/commands/modelsCommand.mjs +4 -4
- package/dist/commands/pluginCommand.mjs +1 -1
- package/dist/commands/skillsCommand.mjs +3 -3
- package/dist/commands/updateCommand.mjs +2 -2
- package/dist/dist-DHgMhdzV.mjs +10138 -0
- package/dist/{fit-BOnDsgbk.mjs → fit-D8Quui6j.mjs} +3 -3
- package/dist/index.mjs +732 -69
- package/dist/{modelServers-B7zI5XnO.mjs → modelServers-JsKBm7Wn.mjs} +1 -1
- package/dist/{package-WlxLVpUb.mjs → package-r_xumsGY.mjs} +1 -1
- package/dist/{serve-DpsV0mag.mjs → serve-BM9PKMLH.mjs} +873 -60
- package/dist/{store-xeJRhBtO.mjs → store-CmOg7JIt.mjs} +2 -0
- package/dist/store-OGMXhD4A.mjs +2 -0
- package/dist/{updateChecker-Boq0RruU.mjs → updateChecker-BOqaLeZU.mjs} +1 -1
- package/package.json +12 -44
- package/dist/ConfigStore-Bo4od3Eu.mjs +0 -2
- package/dist/dist-BPhZ0dCz.mjs +0 -4776
- package/dist/store-Bpdo9Syo.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-
|
|
3
|
-
import { t as logger } from "./Logger-
|
|
4
|
-
import { t as version } from "./package-
|
|
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-
|
|
3
|
-
import { a as getContainerSocketPaths, c as resolveSandboxPath, o as getProtectedWorkspacePaths, s as isBinaryAvailable, t as assertProxyPort } from "./SandboxRuntimeAdapter-
|
|
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,16 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { T as ChatModels, t as logger } from "./Logger-
|
|
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
|
+
import { isDeepStrictEqual } from "node:util";
|
|
4
5
|
import { existsSync, promises } from "fs";
|
|
5
6
|
import { homedir, hostname } from "os";
|
|
6
7
|
import path from "path";
|
|
7
|
-
import { v4 } from "uuid";
|
|
8
8
|
import * as path$2 from "node:path";
|
|
9
9
|
import * as fs from "node:fs";
|
|
10
10
|
import { z as z$1 } from "zod";
|
|
11
11
|
import axios, { isAxiosError } from "axios";
|
|
12
12
|
import { createHash } from "node:crypto";
|
|
13
|
-
import { isDeepStrictEqual } from "node:util";
|
|
14
13
|
import { homedir as homedir$1 } from "node:os";
|
|
15
14
|
//#region src/utils/sanitizeTerminalText.ts
|
|
16
15
|
/**
|
|
@@ -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}.${
|
|
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 =
|
|
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:
|
|
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}.${
|
|
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:
|
|
2802
|
+
userId: crypto.randomUUID()
|
|
2804
2803
|
};
|
|
2805
2804
|
this.fallbackBase = null;
|
|
2806
2805
|
this.projectTrusted = false;
|