billion-context-pi 0.1.69 → 0.1.70
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 +9 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4992,7 +4992,9 @@ function coreOutToAgentMessages(coreOut, originalById) {
|
|
|
4992
4992
|
const emittedSplit = /* @__PURE__ */ new Set();
|
|
4993
4993
|
const kernelTextByCallId = /* @__PURE__ */ new Map();
|
|
4994
4994
|
for (const core of coreOut) {
|
|
4995
|
-
if (core.
|
|
4995
|
+
if (core.contentType === "tool-call" && core.toolCallId && core.text) {
|
|
4996
|
+
kernelTextByCallId.set(core.toolCallId, core.text);
|
|
4997
|
+
}
|
|
4996
4998
|
}
|
|
4997
4999
|
for (const core of coreOut) {
|
|
4998
5000
|
if (core.id.startsWith("acp_summary_")) continue;
|
|
@@ -11600,7 +11602,7 @@ function resolveActivePack(adapter, cwd, provider, modelId, resolver) {
|
|
|
11600
11602
|
}
|
|
11601
11603
|
var HOST_VERSION = (() => {
|
|
11602
11604
|
try {
|
|
11603
|
-
return "0.1.
|
|
11605
|
+
return "0.1.70";
|
|
11604
11606
|
} catch {
|
|
11605
11607
|
return "dev";
|
|
11606
11608
|
}
|
|
@@ -18254,7 +18256,7 @@ async function statusReport(runtime, ctx) {
|
|
|
18254
18256
|
const sentTokens = estimateTokens(coreMessages, coveredIds, imageTokens) + systemPromptTokens;
|
|
18255
18257
|
const viewSentTokens = adjustedTokenCount(runtime.core, coreMessages, state, config, sentTokens, imageTokens, systemPromptTokens);
|
|
18256
18258
|
const turn = runtime.core.processTurn({ messages: coreMessages, state, config, tokenCount: anchorStale ? viewSentTokens : Math.max(viewSentTokens, realUsage?.tokens ?? 0) });
|
|
18257
|
-
const versionStr = "0.1.
|
|
18259
|
+
const versionStr = "0.1.70" ? `billion-context-pi@${"0.1.70"} \xB7 pack: ${resolveSurfaceMeta(runtime.adapter, ctx?.cwd ?? process.cwd(), ctx?.model?.provider, ctx?.model?.id).pack}` : void 0;
|
|
18258
18260
|
let text = buildStatusPanel({
|
|
18259
18261
|
version: versionStr,
|
|
18260
18262
|
tokenCount: sessionTokens,
|
|
@@ -18866,7 +18868,7 @@ async function autoInstallLatest(latest, extDirOverride) {
|
|
|
18866
18868
|
"--no-fund",
|
|
18867
18869
|
"--no-save"
|
|
18868
18870
|
];
|
|
18869
|
-
const prevVersion = (await readPackageJson(join15(extDir, "package.json")))?.version ?? "0.1.
|
|
18871
|
+
const prevVersion = (await readPackageJson(join15(extDir, "package.json")))?.version ?? "0.1.70";
|
|
18870
18872
|
const { code, stderr } = await runNpmImpl(installArgs(latest), { cwd: npmDir, timeout: 6e4 });
|
|
18871
18873
|
if (code !== 0) {
|
|
18872
18874
|
logWarn("update", {
|
|
@@ -18884,7 +18886,7 @@ async function autoInstallLatest(latest, extDirOverride) {
|
|
|
18884
18886
|
}
|
|
18885
18887
|
const verify = await verifyInstall(npmDir, latest);
|
|
18886
18888
|
if (!verify.ok) {
|
|
18887
|
-
const rollbackTo = SEMVER_RE.test(prevVersion) ? prevVersion : "0.1.
|
|
18889
|
+
const rollbackTo = SEMVER_RE.test(prevVersion) ? prevVersion : "0.1.70";
|
|
18888
18890
|
logWarn("update", { event: "auto-install-verify-failed", latest, reason: verify.reason, rollbackTo });
|
|
18889
18891
|
const rb = await runNpmImpl(installArgs(rollbackTo), { cwd: npmDir, timeout: 6e4 });
|
|
18890
18892
|
logInfo("update", { event: "rollback", from: latest, to: rollbackTo, ok: rb.code === 0 });
|
|
@@ -18959,7 +18961,7 @@ async function checkForUpdate(autoUpdate, notify) {
|
|
|
18959
18961
|
}
|
|
18960
18962
|
const latest = await fetchLatestVersion(tag);
|
|
18961
18963
|
if (!latest) return;
|
|
18962
|
-
const current = runtimeVersion ?? "0.1.
|
|
18964
|
+
const current = runtimeVersion ?? "0.1.70";
|
|
18963
18965
|
const hasUpdate = isVersionNewer(latest, current);
|
|
18964
18966
|
debug.event("update-check", {
|
|
18965
18967
|
current,
|
|
@@ -19147,7 +19149,7 @@ function wireSessionLifecycle(pi, runtime, standDownIfProxied) {
|
|
|
19147
19149
|
setDelegatePolicy(DEFAULT_DELEGATE_POLICY);
|
|
19148
19150
|
const sid = ctx.sessionManager.getSessionId();
|
|
19149
19151
|
const modelInfo = ctx.model;
|
|
19150
|
-
logInfo("session", { event: "start", sid, cwd: ctx.cwd, debug: runtime.adapter.debug ?? null, version: true ? "0.1.
|
|
19152
|
+
logInfo("session", { event: "start", sid, cwd: ctx.cwd, debug: runtime.adapter.debug ?? null, version: true ? "0.1.70" : null, model: modelInfo?.id ?? null, modelApi: modelInfo?.api ?? null, contextWindow: modelInfo?.contextWindow ?? null });
|
|
19151
19153
|
try {
|
|
19152
19154
|
await runtime.reloadConfig(ctx.cwd);
|
|
19153
19155
|
const delegateCfg = resolveDelegate(runtime.adapter);
|