@cortexkit/pi-magic-context 0.44.0 → 0.44.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.
@@ -11,6 +11,9 @@ function setHarness(value) {
11
11
  function getHarness() {
12
12
  return currentHarness;
13
13
  }
14
+ function harnessOwnsOpenCodeStore(harness = currentHarness) {
15
+ return harness === "opencode" || harness === "opencode2";
16
+ }
14
17
 
15
18
  // ../plugin/src/shared/data-path.ts
16
19
  import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
@@ -485,4 +488,4 @@ if (!isTestEnv) {
485
488
  process.on("exit", flush);
486
489
  }
487
490
 
488
- export { setHarness, getHarness, getDataDir, ensureCortexKitArtifactGitignore, getProjectMagicContextHistorianDir, getMagicContextStorageDir, getLegacyOpenCodeMagicContextStorageDir, sanitizeDiagnosticText, hasShareabilitySensitiveText, log, sessionLog, flushLogger };
491
+ export { setHarness, getHarness, harnessOwnsOpenCodeStore, getDataDir, ensureCortexKitArtifactGitignore, getProjectMagicContextHistorianDir, getMagicContextStorageDir, getLegacyOpenCodeMagicContextStorageDir, sanitizeDiagnosticText, hasShareabilitySensitiveText, log, sessionLog, flushLogger };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  log
3
- } from "./index-tfzybajk.js";
3
+ } from "./index-59dmj4zs.js";
4
4
 
5
5
  // ../plugin/src/shared/safe-notification-target.ts
6
6
  var DEFAULT_TITLE_RE = /^(New session - |Child session - )\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  log
3
- } from "./index-tfzybajk.js";
3
+ } from "./index-59dmj4zs.js";
4
4
 
5
5
  // ../plugin/src/shared/write-transaction-timing.ts
6
6
  var SLOW_WRITE_TRANSACTION_THRESHOLD_MS = 1000;