peaks-loop-internal-runtime 0.0.41 → 0.0.42

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.
@@ -7,7 +7,6 @@ import type { AutoCompactEvent } from './status-protocol.js';
7
7
  * is not a context window, handed to a child that was then told to measure "85%
8
8
  * of" it. A fabricated denominator is worse than none, because the child cannot
9
9
  * tell that it is fabricated. When the caller genuinely knows the window it is
10
- * still carried verbatim (E5, rid 2026-09-13-defects-e).
11
10
  */
12
11
  export interface MarkerOpts {
13
12
  rid: string;
@@ -25,7 +24,6 @@ export interface ScratchPayload {
25
24
  * The `<peaks-auto-compact>` marker injected at the head of a detached child's
26
25
  * prompt.
27
26
  *
28
- * REWRITTEN IN E5 (rid 2026-09-13-defects-e). The previous text assigned the
29
27
  * child three capabilities it does not have, and the third of them was not even
30
28
  * a registered command:
31
29
  *
@@ -1 +1 @@
1
- {"version":3,"file":"auto-compact-adapter.d.ts","sourceRoot":"","sources":["../src/auto-compact-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAE7D;;;;;;;;;GASG;AACH,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AACD,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC7B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,qBAAa,kBAAkB;IAC7B,MAAM,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM;IAwBhC,gBAAgB,CAAC,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAG/D"}
1
+ {"version":3,"file":"auto-compact-adapter.d.ts","sourceRoot":"","sources":["../src/auto-compact-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAE7D;;;;;;;;GAQG;AACH,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AACD,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC7B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,qBAAa,kBAAkB;IAC7B,MAAM,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM;IAwBhC,gBAAgB,CAAC,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAG/D"}
@@ -2,7 +2,6 @@
2
2
  * The `<peaks-auto-compact>` marker injected at the head of a detached child's
3
3
  * prompt.
4
4
  *
5
- * REWRITTEN IN E5 (rid 2026-09-13-defects-e). The previous text assigned the
6
5
  * child three capabilities it does not have, and the third of them was not even
7
6
  * a registered command:
8
7
  *
@@ -1 +1 @@
1
- {"version":3,"file":"dispatch.d.ts","sourceRoot":"","sources":["../src/dispatch.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAUvD,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,iBAAiB,CAAC;IACrD,MAAM,EAAE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;;;OAKG;IACH,UAAU,EAAE,MAAM,CAAC,cAAc,GAAG,IAAI,CAAC;CAC1C;AAED,wBAAsB,gBAAgB,CAAC,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,cAAc,CAAC,CAkDhF"}
package/dist/dispatch.js CHANGED
@@ -19,7 +19,6 @@ export async function dispatchDetached(i) {
19
19
  throw new Error(`vendor adapter not registered: ${i.vendor}`);
20
20
  const pb = new PromptBuilder();
21
21
  const ac = new AutoCompactAdapter();
22
- // E5 (rid 2026-09-13-defects-e): the marker used to carry
23
22
  // `adapter.maxPromptBytes / 40` as its `vendor-window` — 204.8 for the claude
24
23
  // adapter. That is not a context window (it is a prompt BYTE budget divided by
25
24
  // forty), and the child was then told to measure "85% of" it, with no way to
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare const RUNTIME_VERSION = "4.1.1";
1
+ export declare const RUNTIME_VERSION = "4.1.2";
2
2
  export declare const RUNTIME_NPM_VERSION = "0.0.21";
3
3
  export { ClaudeAdapter } from './vendor/claude-adapter.js';
4
4
  export { CodexAdapter } from './vendor/codex-adapter.js';
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  // API contract: RUNTIME_VERSION tracks peaks-loop root version (4.0.x).
2
2
  // This is what consumers (sub-agents dispatched by peaks-code) check at
3
3
  // runtime to verify protocol compatibility.
4
- export const RUNTIME_VERSION = '4.1.1';
4
+ export const RUNTIME_VERSION = '4.1.2';
5
5
  // npm version: independent 0.0.x SemVer. Runtime is its own package
6
6
  // (peaks-loop-internal-runtime@NPM_VERSION) on the registry; bumps
7
7
  // per peaks release notes when its public surface actually changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "peaks-loop-internal-runtime",
3
- "version": "0.0.41",
3
+ "version": "0.0.42",
4
4
  "description": "Detached sub-agent runtime: ProcessSupervisor + LifecycleOwner + VendorAdapter (claude/codex/copilot) + G8 infinite-context auto-compact. Slice 2026-08-10.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -16,7 +16,7 @@
16
16
  "access": "public"
17
17
  },
18
18
  "peerDependencies": {
19
- "peaks-loop-shared": "0.0.90"
19
+ "peaks-loop-shared": "0.0.91"
20
20
  },
21
21
  "devDependencies": {
22
22
  "typescript": "^5.4.0",
@@ -8,7 +8,6 @@ import type { AutoCompactEvent } from './status-protocol.js';
8
8
  * is not a context window, handed to a child that was then told to measure "85%
9
9
  * of" it. A fabricated denominator is worse than none, because the child cannot
10
10
  * tell that it is fabricated. When the caller genuinely knows the window it is
11
- * still carried verbatim (E5, rid 2026-09-13-defects-e).
12
11
  */
13
12
  export interface MarkerOpts {
14
13
  rid: string;
@@ -27,7 +26,6 @@ export interface ScratchPayload {
27
26
  * The `<peaks-auto-compact>` marker injected at the head of a detached child's
28
27
  * prompt.
29
28
  *
30
- * REWRITTEN IN E5 (rid 2026-09-13-defects-e). The previous text assigned the
31
29
  * child three capabilities it does not have, and the third of them was not even
32
30
  * a registered command:
33
31
  *
package/src/dispatch.ts CHANGED
@@ -46,7 +46,6 @@ export async function dispatchDetached(i: DispatchInput): Promise<DispatchResult
46
46
 
47
47
  const pb = new PromptBuilder();
48
48
  const ac = new AutoCompactAdapter();
49
- // E5 (rid 2026-09-13-defects-e): the marker used to carry
50
49
  // `adapter.maxPromptBytes / 40` as its `vendor-window` — 204.8 for the claude
51
50
  // adapter. That is not a context window (it is a prompt BYTE budget divided by
52
51
  // forty), and the child was then told to measure "85% of" it, with no way to
package/src/index.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // API contract: RUNTIME_VERSION tracks peaks-loop root version (4.0.x).
2
2
  // This is what consumers (sub-agents dispatched by peaks-code) check at
3
3
  // runtime to verify protocol compatibility.
4
- export const RUNTIME_VERSION = '4.1.1';
4
+ export const RUNTIME_VERSION = '4.1.2';
5
5
 
6
6
  // npm version: independent 0.0.x SemVer. Runtime is its own package
7
7
  // (peaks-loop-internal-runtime@NPM_VERSION) on the registry; bumps