billion-context-pi 0.1.56 → 0.1.57-pr.284.74
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/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11909,7 +11909,7 @@ async function statusReport(runtime, ctx) {
|
|
|
11909
11909
|
const coveredIds = collectCoveredMessageIds(state);
|
|
11910
11910
|
const sentTokens = estimateTokens(coreMessages, coveredIds, imageTokens) + systemPromptTokens;
|
|
11911
11911
|
const turn = runtime.core.processTurn({ messages: coreMessages, state, config, tokenCount: anchorStale ? sentTokens : Math.max(sentTokens, realUsage?.tokens ?? 0) });
|
|
11912
|
-
const versionStr = "0.1.
|
|
11912
|
+
const versionStr = "0.1.57" ? `billion-context-pi@${"0.1.57"}` : void 0;
|
|
11913
11913
|
let text = buildStatusPanel({
|
|
11914
11914
|
version: versionStr,
|
|
11915
11915
|
tokenCount: sessionTokens,
|
|
@@ -12272,7 +12272,7 @@ async function autoInstallLatest(latest, extDirOverride) {
|
|
|
12272
12272
|
"--no-fund",
|
|
12273
12273
|
"--no-save"
|
|
12274
12274
|
];
|
|
12275
|
-
const prevVersion = (await readPackageJson(join8(extDir, "package.json")))?.version ?? "0.1.
|
|
12275
|
+
const prevVersion = (await readPackageJson(join8(extDir, "package.json")))?.version ?? "0.1.57";
|
|
12276
12276
|
const { code, stderr } = await runNpmImpl(installArgs(latest), { cwd: npmDir, timeout: 6e4 });
|
|
12277
12277
|
if (code !== 0) {
|
|
12278
12278
|
logWarn("update", {
|
|
@@ -12285,7 +12285,7 @@ async function autoInstallLatest(latest, extDirOverride) {
|
|
|
12285
12285
|
}
|
|
12286
12286
|
const verify = await verifyInstall(npmDir, latest);
|
|
12287
12287
|
if (!verify.ok) {
|
|
12288
|
-
const rollbackTo = SEMVER_RE.test(prevVersion) ? prevVersion : "0.1.
|
|
12288
|
+
const rollbackTo = SEMVER_RE.test(prevVersion) ? prevVersion : "0.1.57";
|
|
12289
12289
|
logWarn("update", { event: "auto-install-verify-failed", latest, reason: verify.reason, rollbackTo });
|
|
12290
12290
|
const rb = await runNpmImpl(installArgs(rollbackTo), { cwd: npmDir, timeout: 6e4 });
|
|
12291
12291
|
logInfo("update", { event: "rollback", from: latest, to: rollbackTo, ok: rb.code === 0 });
|
|
@@ -12346,7 +12346,7 @@ async function checkForUpdate(autoUpdate, notify) {
|
|
|
12346
12346
|
const runtimeVersion = await getRuntimeVersion();
|
|
12347
12347
|
const latest = await fetchLatestVersion();
|
|
12348
12348
|
if (!latest) return;
|
|
12349
|
-
const current = runtimeVersion ?? "0.1.
|
|
12349
|
+
const current = runtimeVersion ?? "0.1.57";
|
|
12350
12350
|
const hasUpdate = isNewer(latest, current);
|
|
12351
12351
|
debug.event("update-check", {
|
|
12352
12352
|
current,
|
|
@@ -12455,7 +12455,7 @@ function wireSessionLifecycle(pi, runtime) {
|
|
|
12455
12455
|
setDelegateDisplayUsage("separate");
|
|
12456
12456
|
const sid = ctx.sessionManager.getSessionId();
|
|
12457
12457
|
const modelInfo = ctx.model;
|
|
12458
|
-
logInfo("session", { event: "start", sid, cwd: ctx.cwd, debug: runtime.adapter.debug ?? null, version: true ? "0.1.
|
|
12458
|
+
logInfo("session", { event: "start", sid, cwd: ctx.cwd, debug: runtime.adapter.debug ?? null, version: true ? "0.1.57" : null, model: modelInfo?.id ?? null, modelApi: modelInfo?.api ?? null, contextWindow: modelInfo?.contextWindow ?? null });
|
|
12459
12459
|
try {
|
|
12460
12460
|
await runtime.reloadConfig(ctx.cwd);
|
|
12461
12461
|
setDelegateDisplayUsage(resolveDelegate(runtime.adapter).displayUsage);
|
|
@@ -12627,7 +12627,7 @@ ${rendered.text}${example}`);
|
|
|
12627
12627
|
function wireSystemPrompt(pi, runtime) {
|
|
12628
12628
|
pi.on("before_agent_start", (event) => {
|
|
12629
12629
|
if (runtime.refused) return;
|
|
12630
|
-
const delegate = runtime.adapter.
|
|
12630
|
+
const delegate = resolveDelegate(runtime.adapter).enabled;
|
|
12631
12631
|
const acp = buildAcpSystemPrompt(runtime.prompts);
|
|
12632
12632
|
const prompt = delegate ? `${acp}
|
|
12633
12633
|
${ACP_DELEGATE_PROMPT}` : acp;
|