@juicesharp/rpiv-btw 2.13.8 → 2.13.9

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/btw-budget.ts CHANGED
@@ -19,7 +19,7 @@ import {
19
19
  type SessionEntry,
20
20
  sessionEntryToContextMessages,
21
21
  } from "@earendil-works/pi-coding-agent";
22
- import type { BtwTurn } from "./btw.js";
22
+ import type { BtwTurn } from "./btw.ts";
23
23
 
24
24
  // ---------------------------------------------------------------------------
25
25
  // Budget constants — the engine's tuning surface. Defined in this leaf module so
package/btw-messages.ts CHANGED
@@ -11,7 +11,7 @@
11
11
  * package surface (and the `*.test.ts` imports from `./btw.js`) is unchanged.
12
12
  *
13
13
  * The phantom type-only cycle `btw.ts ↔ btw-budget.ts` (`btw-budget.ts:22`
14
- * `import type { BtwTurn } from "./btw.js"`) is intentionally left in place —
14
+ * `import type { BtwTurn } from "./btw.ts"`) is intentionally left in place —
15
15
  * it is runtime-inert (erased) and repointing it is owned by no phase in this
16
16
  * plan (see plan risk r6).
17
17
  */
package/btw-ui.ts CHANGED
@@ -35,7 +35,7 @@ import {
35
35
  visibleWidth,
36
36
  wrapTextWithAnsi,
37
37
  } from "@earendil-works/pi-tui";
38
- import { type BtwTurn, userMessageText } from "./btw-messages.js";
38
+ import { type BtwTurn, userMessageText } from "./btw-messages.ts";
39
39
 
40
40
  const BTW_MAX_HEIGHT_RATIO = 0.85;
41
41
 
package/btw.ts CHANGED
@@ -19,10 +19,10 @@ import {
19
19
  type ExtensionContext,
20
20
  type SessionEntry,
21
21
  } from "@earendil-works/pi-coding-agent";
22
- import { type CappedHistory, capHistory, type FitBranchResult, fitBranch } from "./btw-budget.js";
23
- import { assistantMessageText, type BtwTurn, userMessageText } from "./btw-messages.js";
24
- import { showBtwOverlay } from "./btw-ui.js";
25
- import { getRuntimeCompleteSimple, loadCompleteSimple, loadIsContextOverflow } from "./pi-compat.js";
22
+ import { type CappedHistory, capHistory, type FitBranchResult, fitBranch } from "./btw-budget.ts";
23
+ import { assistantMessageText, type BtwTurn, userMessageText } from "./btw-messages.ts";
24
+ import { showBtwOverlay } from "./btw-ui.ts";
25
+ import { getRuntimeCompleteSimple, loadCompleteSimple, loadIsContextOverflow } from "./pi-compat.ts";
26
26
 
27
27
  // ---------------------------------------------------------------------------
28
28
  // Constants — flat named consts, grouped by concern (advisor pattern, b9428e9)
@@ -55,11 +55,11 @@ const errCallThrew = (msg: string) => `/btw call threw: ${msg}`;
55
55
  // Budget (context-budgeting) constants — defined in btw-budget.ts (the leaf budget
56
56
  // module; keeps the module cycle type-only at runtime), re-exported here so the
57
57
  // package surface is unchanged.
58
- export { BTW_CONTEXT_RESERVE, BTW_HISTORY_TOKEN_BUDGET, BTW_NO_ANCHOR_SAFETY_FACTOR } from "./btw-budget.js";
58
+ export { BTW_CONTEXT_RESERVE, BTW_HISTORY_TOKEN_BUDGET, BTW_NO_ANCHOR_SAFETY_FACTOR } from "./btw-budget.ts";
59
59
  // BtwTurn + the message-text extractors live in the cycle-break leaf
60
60
  // (packages/rpiv-btw/btw-messages.ts); re-exported here so the package surface is
61
61
  // unchanged (packages/rpiv-btw/btw.test.ts / btw-ui.test.ts / btw-budget.test.ts still
62
- // import them from "./btw.js"). Import-then-re-export (not `export … from`) because
62
+ // import them from "./btw.ts"). Import-then-re-export (not `export … from`) because
63
63
  // btw.ts consumes all three internally (userMessageText at :166,
64
64
  // assistantMessageText at :341, BtwTurn in BtwState/getSessionHistory/pushSessionTurn).
65
65
  export { assistantMessageText, type BtwTurn, userMessageText };
package/index.ts CHANGED
@@ -8,7 +8,7 @@
8
8
  */
9
9
 
10
10
  import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
11
- import { registerBtwCommand, registerInvalidationHooks, registerMessageEndSnapshot } from "./btw.js";
11
+ import { registerBtwCommand, registerInvalidationHooks, registerMessageEndSnapshot } from "./btw.ts";
12
12
 
13
13
  export default function (pi: ExtensionAPI): void {
14
14
  registerBtwCommand(pi);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juicesharp/rpiv-btw",
3
- "version": "2.13.8",
3
+ "version": "2.13.9",
4
4
  "description": "Pi extension. The /btw slash command, for putting a one-off side question to the same primary model without polluting the main conversation.",
5
5
  "keywords": [
6
6
  "pi-package",