@botconnector/bccli 0.4.9 → 0.4.11
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/dist/{acp-VEXFXT5P.js → acp-IPHWC6CO.js} +20 -5
- package/dist/acp.d.ts +17 -1
- package/dist/args-K5AJFDCZ.js +13 -0
- package/dist/args.d.ts +6 -0
- package/dist/budget.d.ts +4 -1
- package/dist/{chunk-2YG6L3YO.js → chunk-2DFY43RP.js} +2 -2
- package/dist/{chunk-KREGVQ63.js → chunk-6BXW7DGQ.js} +47 -18
- package/dist/{chunk-WSSJH765.js → chunk-6KZIOICR.js} +1 -1
- package/dist/{chunk-OUJRD7GG.js → chunk-6M5T7N7A.js} +8 -3
- package/dist/{chunk-DRJSANKH.js → chunk-C2FUGQJX.js} +9 -7
- package/dist/{chunk-OETLWNGS.js → chunk-F54FDJBD.js} +3 -3
- package/dist/{chunk-XCVYR5BK.js → chunk-G5TG43R4.js} +15 -1
- package/dist/{chunk-RRECJTOG.js → chunk-IHQGXDSG.js} +1 -1
- package/dist/{chunk-AWBEZY4D.js → chunk-JFYQCPXL.js} +7 -5
- package/dist/{chunk-6H6MPG7L.js → chunk-MBAMDCCV.js} +23 -9
- package/dist/{chunk-HCW67S5M.js → chunk-N6APAYSF.js} +1 -1
- package/dist/{chunk-TLCFBQ6E.js → chunk-NT2G5FSX.js} +2 -2
- package/dist/{chunk-CSIQDFEF.js → chunk-OAXD3X4R.js} +34 -50
- package/dist/{chunk-EOJNFGOP.js → chunk-OOOS5RCT.js} +98 -28
- package/dist/{chunk-Z2ELYJ5O.js → chunk-WSZF2CTU.js} +11 -4
- package/dist/{chunk-62UTSCWF.js → chunk-X24APPXO.js} +1 -1
- package/dist/{chunk-EAR2C6TS.js → chunk-XZ2TI5HV.js} +1 -1
- package/dist/{chunk-HPYI7L4W.js → chunk-Y6AZGGH7.js} +4 -4
- package/dist/{chunk-WFZKJY3R.js → chunk-YYTFJUO2.js} +3 -2
- package/dist/cli.js +40 -40
- package/dist/{completion-FETH4OGC.js → completion-QVDGAYUY.js} +1 -1
- package/dist/{config-KR5JI5RA.js → config-7TQ2KVVX.js} +3 -3
- package/dist/{config-RVMC23W3.js → config-RZY3XQZJ.js} +2 -2
- package/dist/{ghBotCli-Z6GWXCJ6.js → ghBotCli-HHJ4ANTH.js} +18 -16
- package/dist/{integrationCli-GPRR6J6W.js → integrationCli-LNNZDGZX.js} +40 -5
- package/dist/{login-DFSN77L3.js → login-MQEZGF2C.js} +6 -4
- package/dist/login.d.ts +2 -0
- package/dist/{mcpCli-64P3SVUE.js → mcpCli-CUIOYJ2A.js} +22 -7
- package/dist/{modelsCli-PFQY3G2Q.js → modelsCli-AAFHFI4H.js} +6 -6
- package/dist/{oauthLogin-NR22NWEV.js → oauthLogin-YFL2N4QA.js} +1 -1
- package/dist/{pluginsCli-UKRJ3AHN.js → pluginsCli-2QXXFLQA.js} +6 -2
- package/dist/{prCli-6FCI36AJ.js → prCli-KSA73RCS.js} +1 -1
- package/dist/print.d.ts +1 -0
- package/dist/providerCli-TXMVPSW5.js +15 -0
- package/dist/sdk.js +196 -87
- package/dist/{serve-PKUTKQQT.js → serve-EIQHEUYD.js} +3 -3
- package/dist/{serve-JYXPQAVY.js → serve-QYDBFTHC.js} +16 -16
- package/dist/session-CQCQ7KAP.js +12 -0
- package/dist/setup-DBSGMWHM.js +24 -0
- package/dist/setup.d.ts +5 -0
- package/dist/{statsCli-FR7GOKWO.js → statsCli-EHNJIQ2Z.js} +2 -2
- package/dist/tools/bash.d.ts +2 -0
- package/dist/{transferCli-GIE4MEJ4.js → transferCli-IXJ2O74Q.js} +4 -4
- package/dist/{ui-NZVOCQSU.js → ui-A2LASWDK.js} +14 -14
- package/dist/{update-DIYDD7LT.js → update-TR62JV3A.js} +2 -2
- package/package.json +1 -1
- package/dist/args-6XMUZDAK.js +0 -13
- package/dist/providerCli-PBSZECBM.js +0 -15
- package/dist/session-XABMBIIF.js +0 -12
- package/dist/setup-CLPQLTM7.js +0 -24
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
createRuntime,
|
|
4
|
+
lunaPtcAutoEnabled
|
|
5
|
+
} from "./chunk-6BXW7DGQ.js";
|
|
6
|
+
import "./chunk-OK2USAXX.js";
|
|
7
|
+
import "./chunk-OAXD3X4R.js";
|
|
8
|
+
import "./chunk-6KZIOICR.js";
|
|
9
|
+
import "./chunk-PSO7R5AD.js";
|
|
10
|
+
import "./chunk-YYTFJUO2.js";
|
|
11
|
+
import "./chunk-JFYQCPXL.js";
|
|
12
|
+
import "./chunk-Y6AZGGH7.js";
|
|
13
|
+
import "./chunk-X24APPXO.js";
|
|
14
|
+
import "./chunk-IHQGXDSG.js";
|
|
15
|
+
import "./chunk-F54FDJBD.js";
|
|
16
|
+
import "./chunk-OOOS5RCT.js";
|
|
17
|
+
import "./chunk-XZ2TI5HV.js";
|
|
18
|
+
import "./chunk-2DFY43RP.js";
|
|
19
|
+
import "./chunk-C2FUGQJX.js";
|
|
20
|
+
import "./chunk-G5TG43R4.js";
|
|
21
|
+
export {
|
|
22
|
+
createRuntime,
|
|
23
|
+
lunaPtcAutoEnabled
|
|
24
|
+
};
|
package/dist/setup.d.ts
CHANGED
|
@@ -71,4 +71,9 @@ export declare function createRuntime(opts: {
|
|
|
71
71
|
userHome?: string;
|
|
72
72
|
/** Override langkah agent (mis. githubBot.stepLimit) — menang atas config.maxSteps. */
|
|
73
73
|
maxSteps?: number | null;
|
|
74
|
+
/**
|
|
75
|
+
* Write the conversation to ~/.bccli/sessions (default true). One-shot hosts such as
|
|
76
|
+
* `gh-bot` turn it off: a session log per webhook comment is never resumed.
|
|
77
|
+
*/
|
|
78
|
+
persistSession?: boolean;
|
|
74
79
|
}): Runtime;
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-OK2USAXX.js";
|
|
5
5
|
import {
|
|
6
6
|
t
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-G5TG43R4.js";
|
|
8
8
|
|
|
9
9
|
// src/statsCli.ts
|
|
10
10
|
import { existsSync, readdirSync, readFileSync, statSync } from "fs";
|
|
@@ -124,7 +124,7 @@ function aggregateSessions(home, opts) {
|
|
|
124
124
|
row.usageOutputTokens += usageOut;
|
|
125
125
|
row.cachedInputTokens += cachedIn;
|
|
126
126
|
row.cacheWriteTokens += cacheWrite;
|
|
127
|
-
row.sessionTotals.push(usageIn + usageOut
|
|
127
|
+
row.sessionTotals.push(usageIn + usageOut);
|
|
128
128
|
} else {
|
|
129
129
|
row.inputTokens += estIn;
|
|
130
130
|
row.outputTokens += estOut;
|
package/dist/tools/bash.d.ts
CHANGED
|
@@ -34,6 +34,8 @@ export interface BashToolOptions {
|
|
|
34
34
|
platform?: NodeJS.Platform;
|
|
35
35
|
/** Test hook: fake environment / file lookup used to pick the Windows shell. */
|
|
36
36
|
shellDeps?: Partial<ShellDeps>;
|
|
37
|
+
/** How many finished background tasks are kept for polling (default 50). */
|
|
38
|
+
maxRetainedTasks?: number;
|
|
37
39
|
}
|
|
38
40
|
export declare function createBashTool(options?: BashToolOptions): import("./types").Tool<z.ZodObject<{
|
|
39
41
|
command: z.ZodOptional<z.ZodString>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
Session
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-F54FDJBD.js";
|
|
5
|
+
import "./chunk-OOOS5RCT.js";
|
|
6
|
+
import "./chunk-XZ2TI5HV.js";
|
|
7
7
|
import {
|
|
8
8
|
t
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-G5TG43R4.js";
|
|
10
10
|
|
|
11
11
|
// src/transferCli.ts
|
|
12
12
|
import { copyFileSync, existsSync, mkdirSync, readdirSync, readFileSync, statSync, writeFileSync } from "fs";
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import {
|
|
3
3
|
CATALOG,
|
|
4
4
|
fillTemplate
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-NT2G5FSX.js";
|
|
6
6
|
import {
|
|
7
7
|
MAX_VERIFY_ROUNDS,
|
|
8
8
|
runVerify,
|
|
9
9
|
toolLabel,
|
|
10
10
|
verifyFollowup,
|
|
11
11
|
worktreeListText
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-6M5T7N7A.js";
|
|
13
13
|
import {
|
|
14
14
|
BUILTIN_AGENTS,
|
|
15
15
|
appendMemory,
|
|
@@ -24,49 +24,49 @@ import {
|
|
|
24
24
|
runCommand,
|
|
25
25
|
runHooks,
|
|
26
26
|
validateGlobPattern
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-OAXD3X4R.js";
|
|
28
28
|
import "./chunk-PSO7R5AD.js";
|
|
29
29
|
import {
|
|
30
30
|
nextMode,
|
|
31
31
|
requiresSensitiveToolApproval
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-YYTFJUO2.js";
|
|
33
33
|
import {
|
|
34
34
|
hasKey,
|
|
35
35
|
providerName,
|
|
36
36
|
writeGlobalConfig
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-X24APPXO.js";
|
|
38
38
|
import {
|
|
39
39
|
Session
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-F54FDJBD.js";
|
|
41
41
|
import {
|
|
42
42
|
contentText
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-OOOS5RCT.js";
|
|
44
44
|
import {
|
|
45
45
|
REASONING_LEVELS,
|
|
46
46
|
assertReasoningSupported,
|
|
47
47
|
parseReasoningLevel,
|
|
48
48
|
supportedReasoningLevels
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-XZ2TI5HV.js";
|
|
50
50
|
import {
|
|
51
51
|
addGlobalServer,
|
|
52
52
|
globalMcpPath,
|
|
53
53
|
readMcpFile,
|
|
54
54
|
removeGlobalServer
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-2DFY43RP.js";
|
|
56
56
|
import {
|
|
57
57
|
ACCENT,
|
|
58
58
|
PRESETS,
|
|
59
59
|
color,
|
|
60
60
|
matchKeybind,
|
|
61
61
|
removeCredential
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-C2FUGQJX.js";
|
|
63
63
|
import {
|
|
64
64
|
getLanguage,
|
|
65
65
|
locale,
|
|
66
66
|
parseLang,
|
|
67
67
|
setLanguage,
|
|
68
68
|
t
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-G5TG43R4.js";
|
|
70
70
|
|
|
71
71
|
// src/ui/index.tsx
|
|
72
72
|
import { render } from "ink";
|
|
@@ -2805,7 +2805,7 @@ ${allLines.slice(-maxLiveLines).join("\n")}` : text;
|
|
|
2805
2805
|
const activeSpinnerSummary = activeToolEntry ? `${toolLabel(activeToolEntry.tool)}${activeTarget ? ` ${activeTarget.length > 20 ? `${activeTarget.slice(0, 20)}\u2026` : activeTarget}` : ""}` : "";
|
|
2806
2806
|
const activeToolSummary = activeToolEntry ? `${toolLabel(activeToolEntry.tool)}${activeTarget ? ` ${activeTarget.length > 68 ? `${activeTarget.slice(0, 68)}\u2026` : activeTarget}` : ""}` : "";
|
|
2807
2807
|
return /* @__PURE__ */ jsxs12(Box13, { ref: liveRootRef, flexDirection: "column", children: [
|
|
2808
|
-
/* @__PURE__ */ jsx16(Static, { items: staticDone, children: renderEntry }, staticKey),
|
|
2808
|
+
/* @__PURE__ */ jsx16(Static, { items: staticDone, children: renderEntry }, `static-${staticKey}`),
|
|
2809
2809
|
activeTurnDone.map(renderEntry),
|
|
2810
2810
|
transcript.live.map(renderEntry),
|
|
2811
2811
|
busy && !pending && !planAsk ? /* @__PURE__ */ jsxs12(
|
|
@@ -2887,7 +2887,7 @@ ${allLines.slice(-maxLiveLines).join("\n")}` : text;
|
|
|
2887
2887
|
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
2888
2888
|
async function startInteractive(rt, opts) {
|
|
2889
2889
|
if (opts.resume) {
|
|
2890
|
-
const { Session: Session2 } = await import("./session-
|
|
2890
|
+
const { Session: Session2 } = await import("./session-CQCQ7KAP.js");
|
|
2891
2891
|
const list = Session2.list(rt.home, rt.cwd).slice(0, 20);
|
|
2892
2892
|
if (!list.length) console.log(t("No sessions in this folder yet; starting a new one."));
|
|
2893
2893
|
else {
|
|
@@ -2903,7 +2903,7 @@ async function startInteractive(rt, opts) {
|
|
|
2903
2903
|
if (chosen) rt.resume(chosen.session);
|
|
2904
2904
|
}
|
|
2905
2905
|
}
|
|
2906
|
-
const { serversToStart, setProjectTrust } = await import("./config-
|
|
2906
|
+
const { serversToStart, setProjectTrust } = await import("./config-7TQ2KVVX.js");
|
|
2907
2907
|
const plan = serversToStart(rt.home, rt.cwd);
|
|
2908
2908
|
if (plan.needTrust.length) {
|
|
2909
2909
|
const { createInterface } = await import("readline/promises");
|
package/package.json
CHANGED
package/dist/args-6XMUZDAK.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
helpText,
|
|
4
|
-
parseCliArgs
|
|
5
|
-
} from "./chunk-Z2ELYJ5O.js";
|
|
6
|
-
import "./chunk-WFZKJY3R.js";
|
|
7
|
-
import "./chunk-EAR2C6TS.js";
|
|
8
|
-
import "./chunk-DRJSANKH.js";
|
|
9
|
-
import "./chunk-XCVYR5BK.js";
|
|
10
|
-
export {
|
|
11
|
-
helpText,
|
|
12
|
-
parseCliArgs
|
|
13
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
addProviderKey,
|
|
4
|
-
runProviderCommand
|
|
5
|
-
} from "./chunk-AWBEZY4D.js";
|
|
6
|
-
import "./chunk-HPYI7L4W.js";
|
|
7
|
-
import "./chunk-62UTSCWF.js";
|
|
8
|
-
import "./chunk-EOJNFGOP.js";
|
|
9
|
-
import "./chunk-EAR2C6TS.js";
|
|
10
|
-
import "./chunk-DRJSANKH.js";
|
|
11
|
-
import "./chunk-XCVYR5BK.js";
|
|
12
|
-
export {
|
|
13
|
-
addProviderKey,
|
|
14
|
-
runProviderCommand
|
|
15
|
-
};
|
package/dist/session-XABMBIIF.js
DELETED
package/dist/setup-CLPQLTM7.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
createRuntime,
|
|
4
|
-
lunaPtcAutoEnabled
|
|
5
|
-
} from "./chunk-KREGVQ63.js";
|
|
6
|
-
import "./chunk-OK2USAXX.js";
|
|
7
|
-
import "./chunk-CSIQDFEF.js";
|
|
8
|
-
import "./chunk-WSSJH765.js";
|
|
9
|
-
import "./chunk-PSO7R5AD.js";
|
|
10
|
-
import "./chunk-WFZKJY3R.js";
|
|
11
|
-
import "./chunk-AWBEZY4D.js";
|
|
12
|
-
import "./chunk-HPYI7L4W.js";
|
|
13
|
-
import "./chunk-62UTSCWF.js";
|
|
14
|
-
import "./chunk-RRECJTOG.js";
|
|
15
|
-
import "./chunk-OETLWNGS.js";
|
|
16
|
-
import "./chunk-EOJNFGOP.js";
|
|
17
|
-
import "./chunk-EAR2C6TS.js";
|
|
18
|
-
import "./chunk-2YG6L3YO.js";
|
|
19
|
-
import "./chunk-DRJSANKH.js";
|
|
20
|
-
import "./chunk-XCVYR5BK.js";
|
|
21
|
-
export {
|
|
22
|
-
createRuntime,
|
|
23
|
-
lunaPtcAutoEnabled
|
|
24
|
-
};
|