@theokit/sdk 4.56.0 → 4.57.0

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.
Files changed (86) hide show
  1. package/CHANGELOG.md +71 -0
  2. package/dist/{agent-PJMBK7HQ.cjs → agent-2T2EJIP6.cjs} +10 -10
  3. package/dist/{agent-PJMBK7HQ.cjs.map → agent-2T2EJIP6.cjs.map} +1 -1
  4. package/dist/{agent-K3PQBS7D.js → agent-ZIYCVEZL.js} +9 -9
  5. package/dist/{agent-K3PQBS7D.js.map → agent-ZIYCVEZL.js.map} +1 -1
  6. package/dist/agent-session-store-G2BMUZQV.js +7 -0
  7. package/dist/{agent-session-store-P6V3FINW.js.map → agent-session-store-G2BMUZQV.js.map} +1 -1
  8. package/dist/agent-session-store-WAKLOKWK.cjs +24 -0
  9. package/dist/{agent-session-store-ZJ3JSRS4.cjs.map → agent-session-store-WAKLOKWK.cjs.map} +1 -1
  10. package/dist/{chunk-HLPSLDGL.cjs → chunk-43GFJ5SD.cjs} +7 -7
  11. package/dist/{chunk-HLPSLDGL.cjs.map → chunk-43GFJ5SD.cjs.map} +1 -1
  12. package/dist/{chunk-KBXWEWKS.js → chunk-7TCRNXNK.js} +50 -30
  13. package/dist/chunk-7TCRNXNK.js.map +1 -0
  14. package/dist/{chunk-JHPGF3FP.cjs → chunk-BUIK7GUA.cjs} +22 -2
  15. package/dist/chunk-BUIK7GUA.cjs.map +1 -0
  16. package/dist/{chunk-6VLKVX7O.cjs → chunk-E7JHD6QJ.cjs} +4 -3
  17. package/dist/chunk-E7JHD6QJ.cjs.map +1 -0
  18. package/dist/{chunk-DZBSJX6J.js → chunk-FKMUFNQE.js} +21 -4
  19. package/dist/chunk-FKMUFNQE.js.map +1 -0
  20. package/dist/{chunk-BMAZLQQ4.js → chunk-G24KZRSA.js} +3 -3
  21. package/dist/{chunk-BMAZLQQ4.js.map → chunk-G24KZRSA.js.map} +1 -1
  22. package/dist/{chunk-ODTZ7HX3.js → chunk-G6EEYRDD.js} +3 -3
  23. package/dist/chunk-G6EEYRDD.js.map +1 -0
  24. package/dist/{chunk-MVAPK2BX.js → chunk-IACR5LEM.js} +3 -3
  25. package/dist/{chunk-MVAPK2BX.js.map → chunk-IACR5LEM.js.map} +1 -1
  26. package/dist/{chunk-V2UUGUY4.cjs → chunk-KKK3FZ4A.cjs} +6 -6
  27. package/dist/{chunk-V2UUGUY4.cjs.map → chunk-KKK3FZ4A.cjs.map} +1 -1
  28. package/dist/{chunk-M7UHYBEY.js → chunk-LEM2GOMI.js} +3 -3
  29. package/dist/{chunk-M7UHYBEY.js.map → chunk-LEM2GOMI.js.map} +1 -1
  30. package/dist/{chunk-LQYQHXIW.cjs → chunk-M2JWHKO6.cjs} +103 -83
  31. package/dist/chunk-M2JWHKO6.cjs.map +1 -0
  32. package/dist/{chunk-YPJ5NH5N.cjs → chunk-QI7WE46I.cjs} +29 -6
  33. package/dist/chunk-QI7WE46I.cjs.map +1 -0
  34. package/dist/{chunk-OHBIUXKM.js → chunk-WG7R5W6R.js} +4 -4
  35. package/dist/{chunk-OHBIUXKM.js.map → chunk-WG7R5W6R.js.map} +1 -1
  36. package/dist/{chunk-H5GOSXSC.cjs → chunk-X7O4255I.cjs} +4 -4
  37. package/dist/{chunk-H5GOSXSC.cjs.map → chunk-X7O4255I.cjs.map} +1 -1
  38. package/dist/{chunk-GJ6RK75E.js → chunk-YJDH3CKG.js} +29 -6
  39. package/dist/chunk-YJDH3CKG.js.map +1 -0
  40. package/dist/{chunk-CTCGWIUD.cjs → chunk-Z4BCLVTI.cjs} +5 -5
  41. package/dist/{chunk-CTCGWIUD.cjs.map → chunk-Z4BCLVTI.cjs.map} +1 -1
  42. package/dist/{compact-session-FUJDVF7B.js → compact-session-QGDNP45U.js} +4 -4
  43. package/dist/{compact-session-FUJDVF7B.js.map → compact-session-QGDNP45U.js.map} +1 -1
  44. package/dist/{compact-session-LEWF554G.cjs → compact-session-YHFQIXV5.cjs} +12 -12
  45. package/dist/{compact-session-LEWF554G.cjs.map → compact-session-YHFQIXV5.cjs.map} +1 -1
  46. package/dist/cron.cjs +9 -9
  47. package/dist/cron.js +8 -8
  48. package/dist/eval.cjs +8 -8
  49. package/dist/eval.js +7 -7
  50. package/dist/{fs-session-store-IN7JTTXD.js → fs-session-store-4BHGIWRE.js} +4 -4
  51. package/dist/{fs-session-store-IN7JTTXD.js.map → fs-session-store-4BHGIWRE.js.map} +1 -1
  52. package/dist/{fs-session-store-3MOJQGP2.cjs → fs-session-store-XZ7ZTB3A.cjs} +5 -5
  53. package/dist/{fs-session-store-3MOJQGP2.cjs.map → fs-session-store-XZ7ZTB3A.cjs.map} +1 -1
  54. package/dist/{index-manager-WC5ZVJWO.cjs → index-manager-AO4LJQZ4.cjs} +4 -4
  55. package/dist/{index-manager-WC5ZVJWO.cjs.map → index-manager-AO4LJQZ4.cjs.map} +1 -1
  56. package/dist/{index-manager-WBIMDVQT.js → index-manager-QDPIYIGV.js} +3 -3
  57. package/dist/{index-manager-WBIMDVQT.js.map → index-manager-QDPIYIGV.js.map} +1 -1
  58. package/dist/index.cjs +38 -38
  59. package/dist/index.js +11 -11
  60. package/dist/{inject-session-WQGGMCQY.cjs → inject-session-MLCJMYDG.cjs} +7 -7
  61. package/dist/{inject-session-WQGGMCQY.cjs.map → inject-session-MLCJMYDG.cjs.map} +1 -1
  62. package/dist/{inject-session-BJMJH5BX.js → inject-session-RBQZ45UM.js} +5 -5
  63. package/dist/{inject-session-BJMJH5BX.js.map → inject-session-RBQZ45UM.js.map} +1 -1
  64. package/dist/internal/persistence/session-transcript.d.cts +40 -1
  65. package/dist/internal/persistence/session-transcript.d.ts +40 -1
  66. package/dist/persistence.cjs +4 -4
  67. package/dist/persistence.js +1 -1
  68. package/dist/session-transcript-HF5GEU5M.cjs +63 -0
  69. package/dist/{session-transcript-JXHFTB7G.cjs.map → session-transcript-HF5GEU5M.cjs.map} +1 -1
  70. package/dist/session-transcript-P462ZRHX.js +6 -0
  71. package/dist/{session-transcript-AKDYYGXQ.js.map → session-transcript-P462ZRHX.js.map} +1 -1
  72. package/docs/error-codes.md +4 -4
  73. package/docs/harness-capability-map.md +1 -1
  74. package/package.json +5 -9
  75. package/dist/agent-session-store-P6V3FINW.js +0 -7
  76. package/dist/agent-session-store-ZJ3JSRS4.cjs +0 -24
  77. package/dist/chunk-6VLKVX7O.cjs.map +0 -1
  78. package/dist/chunk-DZBSJX6J.js.map +0 -1
  79. package/dist/chunk-GJ6RK75E.js.map +0 -1
  80. package/dist/chunk-JHPGF3FP.cjs.map +0 -1
  81. package/dist/chunk-KBXWEWKS.js.map +0 -1
  82. package/dist/chunk-LQYQHXIW.cjs.map +0 -1
  83. package/dist/chunk-ODTZ7HX3.js.map +0 -1
  84. package/dist/chunk-YPJ5NH5N.cjs.map +0 -1
  85. package/dist/session-transcript-AKDYYGXQ.js +0 -6
  86. package/dist/session-transcript-JXHFTB7G.cjs +0 -51
package/CHANGELOG.md CHANGED
@@ -1,5 +1,76 @@
1
1
  # Changelog
2
2
 
3
+ ## 4.57.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 43e4247: A memory fact's `kind` can now actually be written. `Remember (feedback): prefer tabs` types the
8
+ fact; a bare `Remember:` leaves it untyped, as before.
9
+
10
+ The field was added so the local memory store would converge with the format Claude Code uses, and
11
+ it worked in one direction only: the SDK read a kind off an existing memory and honoured it, but no
12
+ path could ever produce one. `appendMemoryFact` rebuilt the fact as `{ text }` alone, so a kind was
13
+ severed at the single chokepoint every write passes through — the round-trip through the file format
14
+ was real and unreachable.
15
+
16
+ Only the four kinds the store accepts (`user`, `feedback`, `project`, `reference`) are recognised, so
17
+ an arbitrary parenthetical is never mistaken for one and no fact is silently typed wrong. `modified`
18
+ is still stamped by the SDK and ignored when supplied: a timestamp the caller controls can lie about
19
+ when something was learned, which defeats weighing a note from this morning against one from four
20
+ months ago.
21
+
22
+ - b85dab4: Session transcripts are now named with a UUID, so the Claude Code CLI can actually `--continue` a
23
+ session this SDK wrote.
24
+
25
+ That interoperability is the difference this project claims over a proprietary session store, and it
26
+ did not hold. Measured against CLI 2.1.236: a transcript resumes only when its basename is a UUID —
27
+ `billing-bot.jsonl` and `agent-<uuid>.jsonl` are both ignored, silently, with the session simply not
28
+ offered. Every session written under a human-readable agent id was invisible.
29
+
30
+ The filename is now derived from the agent id with a UUIDv8 over SHA-256, so it is deterministic:
31
+ the same agent id always yields the same transcript and nothing has to be persisted to map one back
32
+ to the other. Version 8 is RFC 9562's slot for an implementation-defined scheme, which is what this
33
+ is — v5 would have been the obvious choice but RFC 4122 fixes its hash to SHA-1, and a weak
34
+ primitive in the tree costs a permanent argument with every scanner that sees it. An
35
+ agent id that is already a UUID passes through unchanged, so a transcript Claude Code wrote keeps its
36
+ own name and the two directions stay symmetric.
37
+
38
+ Existing transcripts are not orphaned: a session whose file already exists under the old name keeps
39
+ using it, so history continues to accumulate in one place rather than being abandoned for an empty
40
+ file under the new name. Those sessions do not gain `--continue` support — their name is what the CLI
41
+ cannot read — but nothing that was written is lost or hidden.
42
+
43
+ ### Patch Changes
44
+
45
+ - 18a68a0: A provider that does not take its credential from the caller is no longer refused for lacking one.
46
+ `createLocalAgent` read the provider descriptor two lines below the `throw` that guaranteed
47
+ execution never reached it, so `ollama/llama3.2` failed with `missing_api_key` before any runtime
48
+ work began — and so did every OAuth profile, Bedrock and Vertex.
49
+
50
+ Only `authType: "api_key"` requires a key from the caller. The other four modes source their own:
51
+ `none` sends no Authorization header at all, and `aws_bearer` / `gcp_oauth` / `oauth_device_code` /
52
+ `oauth_external` build their client with a placeholder and resolve a real token at stream time.
53
+
54
+ Fail-closed is preserved in both directions that matter: an unregistered provider prefix yields no
55
+ profile and is still refused, so a typo cannot become a free pass; and a provider that does
56
+ authenticate is refused exactly as before.
57
+
58
+ - 4565e43: `zod` is now a regular dependency, so `npm install @theokit/sdk` produces a package that imports.
59
+
60
+ It was declared as an OPTIONAL peer dependency while 27 source files imported it — 14 of them at
61
+ module scope, on the paths that load agent context, read credentials and parse persistence. npm
62
+ honoured the declaration and did not install it, so a fresh consumer hit
63
+ `Cannot find package 'zod'` on the first line of the quickstart, from `dist/index.js` itself. 12 of
64
+ the 33 published subpaths could not be loaded at all.
65
+
66
+ Every suite in this repository runs inside the workspace, where `zod` is hoisted whether or not the
67
+ package declares it — which is why 5000+ green tests, `publint` and `attw` all saw nothing. The
68
+ release chain now packs the tarball, installs it outside the workspace and imports every declared
69
+ subpath, so this class of defect fails before publishing rather than after.
70
+
71
+ Consumers already on `zod ^4` are unaffected: the ranges overlap and the tree still resolves to a
72
+ single copy, so a schema you build still crosses into the SDK as the same type.
73
+
3
74
  ## 4.56.0
4
75
 
5
76
  ### Minor Changes
@@ -1,20 +1,20 @@
1
1
  'use strict';
2
2
 
3
- var chunkLQYQHXIW_cjs = require('./chunk-LQYQHXIW.cjs');
4
- require('./chunk-V2UUGUY4.cjs');
5
- require('./chunk-6VLKVX7O.cjs');
3
+ var chunkM2JWHKO6_cjs = require('./chunk-M2JWHKO6.cjs');
4
+ require('./chunk-KKK3FZ4A.cjs');
5
+ require('./chunk-E7JHD6QJ.cjs');
6
6
  require('./chunk-53CBTBWO.cjs');
7
7
  require('./chunk-BV2MWEMV.cjs');
8
8
  require('./chunk-NGESVVJN.cjs');
9
9
  require('./chunk-BUUUWQMB.cjs');
10
10
  require('./chunk-EI2Q7SJ5.cjs');
11
11
  require('./chunk-GHX4P3V2.cjs');
12
- require('./chunk-YPJ5NH5N.cjs');
13
- require('./chunk-HLPSLDGL.cjs');
12
+ require('./chunk-QI7WE46I.cjs');
13
+ require('./chunk-43GFJ5SD.cjs');
14
14
  require('./chunk-F3YZMOAU.cjs');
15
15
  require('./chunk-4OTIXDMU.cjs');
16
16
  require('./chunk-DQKERTND.cjs');
17
- require('./chunk-CTCGWIUD.cjs');
17
+ require('./chunk-Z4BCLVTI.cjs');
18
18
  require('./chunk-2ZPEDVLM.cjs');
19
19
  require('./chunk-E3WZ6Y4H.cjs');
20
20
  require('./chunk-KRD3GQAA.cjs');
@@ -33,7 +33,7 @@ require('./chunk-VKJ7V7EB.cjs');
33
33
  require('./chunk-ILCGLTSA.cjs');
34
34
  require('./chunk-CQGYNZ3K.cjs');
35
35
  require('./chunk-4I55V454.cjs');
36
- require('./chunk-JHPGF3FP.cjs');
36
+ require('./chunk-BUIK7GUA.cjs');
37
37
  require('./chunk-SKXBJ2NU.cjs');
38
38
  require('./chunk-2ADR2GSO.cjs');
39
39
  require('./chunk-ZF2LDKQQ.cjs');
@@ -56,7 +56,7 @@ require('./chunk-NUKRL3I6.cjs');
56
56
 
57
57
  Object.defineProperty(exports, "Agent", {
58
58
  enumerable: true,
59
- get: function () { return chunkLQYQHXIW_cjs.Agent; }
59
+ get: function () { return chunkM2JWHKO6_cjs.Agent; }
60
60
  });
61
- //# sourceMappingURL=agent-PJMBK7HQ.cjs.map
62
- //# sourceMappingURL=agent-PJMBK7HQ.cjs.map
61
+ //# sourceMappingURL=agent-2T2EJIP6.cjs.map
62
+ //# sourceMappingURL=agent-2T2EJIP6.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"agent-PJMBK7HQ.cjs"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"agent-2T2EJIP6.cjs"}
@@ -1,18 +1,18 @@
1
- export { Agent } from './chunk-KBXWEWKS.js';
2
- import './chunk-OHBIUXKM.js';
3
- import './chunk-ODTZ7HX3.js';
1
+ export { Agent } from './chunk-7TCRNXNK.js';
2
+ import './chunk-WG7R5W6R.js';
3
+ import './chunk-G6EEYRDD.js';
4
4
  import './chunk-YMA4S2WO.js';
5
5
  import './chunk-2SFBB54R.js';
6
6
  import './chunk-SUKXXLWD.js';
7
7
  import './chunk-K2BQQ445.js';
8
8
  import './chunk-XN7NOENA.js';
9
9
  import './chunk-H73MEMQB.js';
10
- import './chunk-GJ6RK75E.js';
11
- import './chunk-MVAPK2BX.js';
10
+ import './chunk-YJDH3CKG.js';
11
+ import './chunk-IACR5LEM.js';
12
12
  import './chunk-3E77SX4H.js';
13
13
  import './chunk-WTMU7J4U.js';
14
14
  import './chunk-5JLFFPCH.js';
15
- import './chunk-BMAZLQQ4.js';
15
+ import './chunk-G24KZRSA.js';
16
16
  import './chunk-HKCKOAIO.js';
17
17
  import './chunk-7FHZ4VQX.js';
18
18
  import './chunk-KVNWIAO4.js';
@@ -31,7 +31,7 @@ import './chunk-RIAM53CP.js';
31
31
  import './chunk-UC3HT2S4.js';
32
32
  import './chunk-OC4NTGMN.js';
33
33
  import './chunk-44JAAH4X.js';
34
- import './chunk-DZBSJX6J.js';
34
+ import './chunk-FKMUFNQE.js';
35
35
  import './chunk-CQ2TQ32Y.js';
36
36
  import './chunk-CV7XMBHP.js';
37
37
  import './chunk-Q5EWJPRY.js';
@@ -49,5 +49,5 @@ import './chunk-3OR54XG4.js';
49
49
  import './chunk-IDCKSLYH.js';
50
50
  import './chunk-T7XEKOVW.js';
51
51
  import './chunk-T7O6K6PX.js';
52
- //# sourceMappingURL=agent-K3PQBS7D.js.map
53
- //# sourceMappingURL=agent-K3PQBS7D.js.map
52
+ //# sourceMappingURL=agent-ZIYCVEZL.js.map
53
+ //# sourceMappingURL=agent-ZIYCVEZL.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"agent-K3PQBS7D.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"agent-ZIYCVEZL.js"}
@@ -0,0 +1,7 @@
1
+ export { appendCompactBoundaryRecord, persistTurn, readSessionMessages } from './chunk-G24KZRSA.js';
2
+ import './chunk-FKMUFNQE.js';
3
+ import './chunk-VF7EWVDG.js';
4
+ import './chunk-T7XEKOVW.js';
5
+ import './chunk-T7O6K6PX.js';
6
+ //# sourceMappingURL=agent-session-store-G2BMUZQV.js.map
7
+ //# sourceMappingURL=agent-session-store-G2BMUZQV.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"agent-session-store-P6V3FINW.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"agent-session-store-G2BMUZQV.js"}
@@ -0,0 +1,24 @@
1
+ 'use strict';
2
+
3
+ var chunkZ4BCLVTI_cjs = require('./chunk-Z4BCLVTI.cjs');
4
+ require('./chunk-BUIK7GUA.cjs');
5
+ require('./chunk-I6TGFUCO.cjs');
6
+ require('./chunk-JTB5Q42C.cjs');
7
+ require('./chunk-NUKRL3I6.cjs');
8
+
9
+
10
+
11
+ Object.defineProperty(exports, "appendCompactBoundaryRecord", {
12
+ enumerable: true,
13
+ get: function () { return chunkZ4BCLVTI_cjs.appendCompactBoundaryRecord; }
14
+ });
15
+ Object.defineProperty(exports, "persistTurn", {
16
+ enumerable: true,
17
+ get: function () { return chunkZ4BCLVTI_cjs.persistTurn; }
18
+ });
19
+ Object.defineProperty(exports, "readSessionMessages", {
20
+ enumerable: true,
21
+ get: function () { return chunkZ4BCLVTI_cjs.readSessionMessages; }
22
+ });
23
+ //# sourceMappingURL=agent-session-store-WAKLOKWK.cjs.map
24
+ //# sourceMappingURL=agent-session-store-WAKLOKWK.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"agent-session-store-ZJ3JSRS4.cjs"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"agent-session-store-WAKLOKWK.cjs"}
@@ -5,7 +5,7 @@ var chunk4OTIXDMU_cjs = require('./chunk-4OTIXDMU.cjs');
5
5
  var chunkDQKERTND_cjs = require('./chunk-DQKERTND.cjs');
6
6
  var chunk6JSIEDKL_cjs = require('./chunk-6JSIEDKL.cjs');
7
7
  var chunkFRITRLZQ_cjs = require('./chunk-FRITRLZQ.cjs');
8
- var chunkJHPGF3FP_cjs = require('./chunk-JHPGF3FP.cjs');
8
+ var chunkBUIK7GUA_cjs = require('./chunk-BUIK7GUA.cjs');
9
9
  var chunkXSX2UU6Y_cjs = require('./chunk-XSX2UU6Y.cjs');
10
10
  var chunkNIRE5CNO_cjs = require('./chunk-NIRE5CNO.cjs');
11
11
  var chunkK3FW2XZD_cjs = require('./chunk-K3FW2XZD.cjs');
@@ -757,7 +757,7 @@ async function resolveBedrockToken(region) {
757
757
  return cachedToken.value;
758
758
  }
759
759
  try {
760
- const r = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-HLPSLDGL.cjs', document.baseURI).href)));
760
+ const r = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-43GFJ5SD.cjs', document.baseURI).href)));
761
761
  const gen = r("@aws/bedrock-token-generator");
762
762
  if (typeof gen.getToken !== "function") return void 0;
763
763
  const providers = r("@aws-sdk/credential-providers");
@@ -2504,7 +2504,7 @@ async function resolveVertexAccessToken() {
2504
2504
  async function getAuthClientOrThrow() {
2505
2505
  let mod;
2506
2506
  try {
2507
- const r = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-HLPSLDGL.cjs', document.baseURI).href)));
2507
+ const r = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-43GFJ5SD.cjs', document.baseURI).href)));
2508
2508
  mod = r("google-auth-library");
2509
2509
  } catch (err) {
2510
2510
  const isModuleMissing = err instanceof Error && (err.message.includes("Cannot find module") || err.code === "MODULE_NOT_FOUND");
@@ -3019,7 +3019,7 @@ function plainText(content) {
3019
3019
  }
3020
3020
  async function compactSessionTranscript(opts) {
3021
3021
  const prior = await opts.store.readRecords(opts.loc.agentId);
3022
- const history = chunkJHPGF3FP_cjs.reconstructMessages(prior);
3022
+ const history = chunkBUIK7GUA_cjs.reconstructMessages(prior);
3023
3023
  const compressible = [];
3024
3024
  for (const m of history) {
3025
3025
  const text = plainText(m.content);
@@ -3048,7 +3048,7 @@ async function compactSessionTranscript(opts) {
3048
3048
  }
3049
3049
  const summary = `${COMPACT_SUMMARY_MARKER}
3050
3050
  ${summaryBody}`;
3051
- const transcript = chunkJHPGF3FP_cjs.SessionTranscript.fromRecords(prior, {
3051
+ const transcript = chunkBUIK7GUA_cjs.SessionTranscript.fromRecords(prior, {
3052
3052
  cwd: opts.loc.cwd,
3053
3053
  sessionId: opts.sessionId,
3054
3054
  model: opts.loc.model ?? "unknown"
@@ -3174,5 +3174,5 @@ exports.shouldUseFixtureMode = shouldUseFixtureMode;
3174
3174
  exports.shouldUseRealLocalRuntime = shouldUseRealLocalRuntime;
3175
3175
  exports.tryFirstEvent = tryFirstEvent;
3176
3176
  exports.warnProviderPrecedenceOnce = warnProviderPrecedenceOnce;
3177
- //# sourceMappingURL=chunk-HLPSLDGL.cjs.map
3178
- //# sourceMappingURL=chunk-HLPSLDGL.cjs.map
3177
+ //# sourceMappingURL=chunk-43GFJ5SD.cjs.map
3178
+ //# sourceMappingURL=chunk-43GFJ5SD.cjs.map