@cortexkit/magic-context 0.49.17 → 0.49.19

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 (2) hide show
  1. package/dist/index.js +1 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -30315,8 +30315,7 @@ var init_migrations = __esm(async () => {
30315
30315
  up(db) {
30316
30316
  const memoriesPresent = tableExists3(db, "memories");
30317
30317
  const notesPresent = tableExists3(db, "notes");
30318
- const native = db;
30319
- const privilegeCheck = typeof native.function === "function" || typeof native.createFunction === "function" ? "mc_privileged_writer() = 0" : "COALESCE((SELECT enabled FROM context_privilege_state WHERE id = 1), 0) = 0";
30318
+ const privilegeCheck = authorityPrivilegeCheck();
30320
30319
  if (memoriesPresent) {
30321
30320
  db.exec(`
30322
30321
  DROP TRIGGER IF EXISTS memories_authority_guard_insert;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cortexkit/magic-context",
3
- "version": "0.49.17",
3
+ "version": "0.49.19",
4
4
  "description": "Unified CLI for Magic Context — setup, doctor, and migration across OpenCode, Pi, and OMP",
5
5
  "keywords": [
6
6
  "opencode",