@botconnector/bccli 0.4.0-beta.20 → 0.4.0-beta.21
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/{chunk-ZHB44IEA.js → chunk-34STZH4U.js} +3 -0
- package/dist/{chunk-IEUNV3XI.js → chunk-VNIUYPVN.js} +1 -1
- package/dist/cli.js +6 -6
- package/dist/{login-QPH44MM5.js → login-TG5LQP3I.js} +1 -1
- package/dist/{providerCli-GQCLV6X2.js → providerCli-6FXMBKQL.js} +1 -1
- package/package.json +1 -1
|
@@ -69,6 +69,7 @@ function splitThinking(text) {
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
// src/provider.ts
|
|
72
|
+
var LUNA_AUTO_COMPACT_THRESHOLD = 24e4;
|
|
72
73
|
var ProviderError = class extends Error {
|
|
73
74
|
constructor(message, status, code) {
|
|
74
75
|
super(message);
|
|
@@ -574,6 +575,7 @@ function createProvider(options) {
|
|
|
574
575
|
input: plan.input,
|
|
575
576
|
...plan.previousResponseId ? { previous_response_id: plan.previousResponseId } : {},
|
|
576
577
|
...nativeTools.length ? { tools: nativeTools } : {},
|
|
578
|
+
context_management: [{ type: "compaction", compact_threshold: LUNA_AUTO_COMPACT_THRESHOLD }],
|
|
577
579
|
...responseReasoning(reasoning)
|
|
578
580
|
};
|
|
579
581
|
let emittedText = false;
|
|
@@ -660,6 +662,7 @@ function createProvider(options) {
|
|
|
660
662
|
stream: true,
|
|
661
663
|
store: false,
|
|
662
664
|
...nativeTools.length ? { tools: nativeTools } : {},
|
|
665
|
+
context_management: [{ type: "compaction", compact_threshold: LUNA_AUTO_COMPACT_THRESHOLD }],
|
|
663
666
|
...responseReasoning(reasoning)
|
|
664
667
|
},
|
|
665
668
|
signal
|
|
@@ -35,7 +35,7 @@ function readSecret(prompt) {
|
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
async function runLogin(providerId, cwd) {
|
|
38
|
-
const { runProviderCommand } = await import("./providerCli-
|
|
38
|
+
const { runProviderCommand } = await import("./providerCli-6FXMBKQL.js");
|
|
39
39
|
const { parseCliArgs } = await import("./args-XQYEBOKB.js");
|
|
40
40
|
return runProviderCommand(parseCliArgs(["provider", "add", providerId]), {
|
|
41
41
|
env: process.env,
|
package/dist/cli.js
CHANGED
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
addProviderKey,
|
|
21
21
|
createProvider,
|
|
22
22
|
listAllModels
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-34STZH4U.js";
|
|
24
24
|
import {
|
|
25
25
|
providerName,
|
|
26
26
|
readGlobalConfigFile
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
import "./chunk-SN3ODJZN.js";
|
|
29
29
|
import {
|
|
30
30
|
runLogin
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-VNIUYPVN.js";
|
|
32
32
|
import {
|
|
33
33
|
Session,
|
|
34
34
|
pruneSessions
|
|
@@ -1604,7 +1604,7 @@ function createRuntime(opts) {
|
|
|
1604
1604
|
}
|
|
1605
1605
|
|
|
1606
1606
|
// src/version.ts
|
|
1607
|
-
var VERSION = true ? "0.4.0-beta.
|
|
1607
|
+
var VERSION = true ? "0.4.0-beta.21" : "0.0.0-dev";
|
|
1608
1608
|
|
|
1609
1609
|
// src/cli.ts
|
|
1610
1610
|
function chooseLanguage(argv) {
|
|
@@ -1630,12 +1630,12 @@ async function main() {
|
|
|
1630
1630
|
if (args.command === "login") return runLogin(args.loginProvider ?? "bc-cloud", cwd);
|
|
1631
1631
|
if (args.command === "mcp") {
|
|
1632
1632
|
const { runMcpCommand } = await import("./mcpCli-J43FHF2H.js");
|
|
1633
|
-
const { readSecret } = await import("./login-
|
|
1633
|
+
const { readSecret } = await import("./login-TG5LQP3I.js");
|
|
1634
1634
|
return runMcpCommand(args, { env: process.env, cwd, out: (s) => console.log(s), err: (s) => console.error(s), readSecret });
|
|
1635
1635
|
}
|
|
1636
1636
|
if (args.command === "provider") {
|
|
1637
|
-
const { runProviderCommand } = await import("./providerCli-
|
|
1638
|
-
const { readSecret } = await import("./login-
|
|
1637
|
+
const { runProviderCommand } = await import("./providerCli-6FXMBKQL.js");
|
|
1638
|
+
const { readSecret } = await import("./login-TG5LQP3I.js");
|
|
1639
1639
|
return runProviderCommand(args, { env: process.env, cwd, out: (s) => console.log(s), err: (s) => console.error(s), readSecret });
|
|
1640
1640
|
}
|
|
1641
1641
|
if (args.command === "connect" || args.command === "disconnect" || args.command === "integrations") {
|