@theokit/sdk 4.34.0 → 4.34.1

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 (39) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/{agent-EQQA5VGX.js → agent-4QDGRBWZ.js} +5 -5
  3. package/dist/{agent-EQQA5VGX.js.map → agent-4QDGRBWZ.js.map} +1 -1
  4. package/dist/{agent-W6NI3HY4.cjs → agent-RMQ5SZWO.cjs} +6 -6
  5. package/dist/{agent-W6NI3HY4.cjs.map → agent-RMQ5SZWO.cjs.map} +1 -1
  6. package/dist/{chunk-VQ6NY4F5.js → chunk-5SMWZHX5.js} +3 -3
  7. package/dist/{chunk-VQ6NY4F5.js.map → chunk-5SMWZHX5.js.map} +1 -1
  8. package/dist/{chunk-JYMBHNNU.cjs → chunk-K2BXB2TZ.cjs} +7 -4
  9. package/dist/chunk-K2BXB2TZ.cjs.map +1 -0
  10. package/dist/{chunk-IZFZ6RHA.cjs → chunk-LJVGAI2G.cjs} +5 -5
  11. package/dist/{chunk-IZFZ6RHA.cjs.map → chunk-LJVGAI2G.cjs.map} +1 -1
  12. package/dist/{chunk-IPHW3VKP.js → chunk-ODB6CFVT.js} +8 -5
  13. package/dist/chunk-ODB6CFVT.js.map +1 -0
  14. package/dist/{chunk-TPTHVSIG.js → chunk-VC6VXYKA.js} +11 -6
  15. package/dist/chunk-VC6VXYKA.js.map +1 -0
  16. package/dist/{chunk-TS6IPRME.cjs → chunk-VREQYYUJ.cjs} +14 -9
  17. package/dist/chunk-VREQYYUJ.cjs.map +1 -0
  18. package/dist/{chunk-IAZX7RZM.cjs → chunk-WPOL5UGI.cjs} +4 -4
  19. package/dist/{chunk-IAZX7RZM.cjs.map → chunk-WPOL5UGI.cjs.map} +1 -1
  20. package/dist/{chunk-5QMXYX3X.js → chunk-YO67QDHZ.js} +3 -3
  21. package/dist/{chunk-5QMXYX3X.js.map → chunk-YO67QDHZ.js.map} +1 -1
  22. package/dist/cron.cjs +5 -5
  23. package/dist/cron.js +4 -4
  24. package/dist/eval.cjs +4 -4
  25. package/dist/eval.js +3 -3
  26. package/dist/fs-session-store-A5W573D3.js +10 -0
  27. package/dist/{fs-session-store-SJ3RA5I2.js.map → fs-session-store-A5W573D3.js.map} +1 -1
  28. package/dist/{fs-session-store-QS763E3Y.cjs → fs-session-store-F7PNNAIS.cjs} +5 -5
  29. package/dist/{fs-session-store-QS763E3Y.cjs.map → fs-session-store-F7PNNAIS.cjs.map} +1 -1
  30. package/dist/index.cjs +23 -23
  31. package/dist/index.js +6 -6
  32. package/dist/persistence.cjs +3 -3
  33. package/dist/persistence.js +1 -1
  34. package/package.json +1 -1
  35. package/dist/chunk-IPHW3VKP.js.map +0 -1
  36. package/dist/chunk-JYMBHNNU.cjs.map +0 -1
  37. package/dist/chunk-TPTHVSIG.js.map +0 -1
  38. package/dist/chunk-TS6IPRME.cjs.map +0 -1
  39. package/dist/fs-session-store-SJ3RA5I2.js +0 -10
@@ -3,7 +3,7 @@
3
3
  var chunkBV2MWEMV_cjs = require('./chunk-BV2MWEMV.cjs');
4
4
  var chunkMZ5ZRORA_cjs = require('./chunk-MZ5ZRORA.cjs');
5
5
  var chunkG4WI3VW2_cjs = require('./chunk-G4WI3VW2.cjs');
6
- var chunkIAZX7RZM_cjs = require('./chunk-IAZX7RZM.cjs');
6
+ var chunkWPOL5UGI_cjs = require('./chunk-WPOL5UGI.cjs');
7
7
  var chunkWEHUJ7ZS_cjs = require('./chunk-WEHUJ7ZS.cjs');
8
8
  var chunkJLMXKTBX_cjs = require('./chunk-JLMXKTBX.cjs');
9
9
  var chunkN24XBYNX_cjs = require('./chunk-N24XBYNX.cjs');
@@ -3571,7 +3571,7 @@ var HISTOGRAM_NAMES = {
3571
3571
  };
3572
3572
  function safeRequire(moduleName) {
3573
3573
  try {
3574
- const r = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-TS6IPRME.cjs', document.baseURI).href)));
3574
+ const r = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-VREQYYUJ.cjs', document.baseURI).href)));
3575
3575
  return r(moduleName);
3576
3576
  } catch {
3577
3577
  return void 0;
@@ -3796,7 +3796,7 @@ var cachedOtel;
3796
3796
  function loadOtel() {
3797
3797
  if (cachedOtel === void 0) {
3798
3798
  try {
3799
- const r = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-TS6IPRME.cjs', document.baseURI).href)));
3799
+ const r = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-VREQYYUJ.cjs', document.baseURI).href)));
3800
3800
  const mod = r("@opentelemetry/api");
3801
3801
  cachedOtel = mod;
3802
3802
  } catch {
@@ -9592,7 +9592,7 @@ var LocalAgent = class {
9592
9592
  this.options = options;
9593
9593
  this.workspaceCwd = resolveCwd(options.local?.cwd);
9594
9594
  this.transcriptBaseDir = resolveBaseDir(options.local?.baseDir);
9595
- this.sessionStore = options.local?.sessionStore ?? new chunkIAZX7RZM_cjs.FsSessionStore({ baseDir: this.transcriptBaseDir, cwd: this.workspaceCwd });
9595
+ this.sessionStore = options.local?.sessionStore ?? new chunkWPOL5UGI_cjs.FsSessionStore({ baseDir: this.transcriptBaseDir, cwd: this.workspaceCwd });
9596
9596
  this.settingSourcesIncludeProject = includesSetting(options, "project");
9597
9597
  this.settingSourcesIncludePlugins = includesSetting(options, "plugins");
9598
9598
  const sub = bootstrapSubmanagers({
@@ -9641,8 +9641,13 @@ var LocalAgent = class {
9641
9641
  this.options.agents
9642
9642
  );
9643
9643
  await adquirirLeaseSePossivel(this.sessionStore, this.agentId);
9644
- await chunkG4WI3VW2_cjs.hydrateSession(this.agentId, { store: this.sessionStore, cwd: this.workspaceCwd });
9645
- await this.personalityStore.hydrate(this.agentId);
9644
+ try {
9645
+ await chunkG4WI3VW2_cjs.hydrateSession(this.agentId, { store: this.sessionStore, cwd: this.workspaceCwd });
9646
+ await this.personalityStore.hydrate(this.agentId);
9647
+ } catch (err) {
9648
+ await disposeSessionStore(this.sessionStore);
9649
+ throw err;
9650
+ }
9646
9651
  }
9647
9652
  /** T4.2 — expose PluginManager so agent-loop can fire pre_tool_call hooks. @internal */
9648
9653
  pluginManager() {
@@ -10524,7 +10529,7 @@ async function abrirStoreLocal(reg) {
10524
10529
  const cwd = reg.cwd ?? process.cwd();
10525
10530
  const optModel = reg.options.model;
10526
10531
  const model = reg.model?.id ?? (typeof optModel === "string" ? optModel : optModel?.id) ?? "unknown";
10527
- const { FsSessionStore: FsSessionStore2 } = await import('./fs-session-store-QS763E3Y.cjs');
10532
+ const { FsSessionStore: FsSessionStore2 } = await import('./fs-session-store-F7PNNAIS.cjs');
10528
10533
  const { defaultBaseDir: defaultBaseDir2, expandTilde: expandTilde2 } = await import('./session-transcript-JXFMPLOT.cjs');
10529
10534
  const baseDir = reg.options.local?.baseDir !== void 0 ? expandTilde2(reg.options.local.baseDir) : defaultBaseDir2();
10530
10535
  return { cwd, model, store: new FsSessionStore2({ baseDir, cwd }) };
@@ -10545,5 +10550,5 @@ exports.isFixtureApiKey = isFixtureApiKey;
10545
10550
  exports.openRouterMemoryEmbeddingProviderAdapter = openRouterMemoryEmbeddingProviderAdapter;
10546
10551
  exports.resolveApiKey = resolveApiKey;
10547
10552
  exports.shouldUseFixtureMode = shouldUseFixtureMode;
10548
- //# sourceMappingURL=chunk-TS6IPRME.cjs.map
10549
- //# sourceMappingURL=chunk-TS6IPRME.cjs.map
10553
+ //# sourceMappingURL=chunk-VREQYYUJ.cjs.map
10554
+ //# sourceMappingURL=chunk-VREQYYUJ.cjs.map