@contextecf/guardian-cli 0.1.0 → 0.1.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.
package/README.md CHANGED
@@ -190,8 +190,8 @@ Guardian starts local-first:
190
190
  The npm package publishes bundled CLI/runtime JavaScript, TypeScript
191
191
  declarations, and this README. Guardian workspace packages are bundled into the
192
192
  CLI entrypoints so `npx @contextecf/guardian-cli@latest setup` can run outside
193
- the monorepo. The native SQLite adapter remains a normal `better-sqlite3`
194
- runtime dependency.
193
+ the monorepo. The native SQLite adapter remains a normal
194
+ `better-sqlite3-multiple-ciphers` runtime dependency.
195
195
 
196
196
  Source files, source maps, and source-controlled release gates remain in the
197
197
  private repository and should be validated before broad distribution.
@@ -15741,8 +15741,7 @@ import { createCipheriv, createDecipheriv, createHash, randomBytes } from "node:
15741
15741
  import { readFileSync } from "node:fs";
15742
15742
  import { copyFile, mkdir, readFile, stat } from "node:fs/promises";
15743
15743
  import path from "node:path";
15744
- import Database from "better-sqlite3";
15745
- import PageEncryptedDatabase from "better-sqlite3-multiple-ciphers";
15744
+ import SQLiteDatabase from "better-sqlite3-multiple-ciphers";
15746
15745
  function migrateSQLitePersonalFabricStore(db) {
15747
15746
  db.exec(`
15748
15747
  CREATE TABLE IF NOT EXISTS guardian_ecl_events (
@@ -16047,12 +16046,12 @@ function buildSQLitePersonalFabricStorePageEncryption(options) {
16047
16046
  }
16048
16047
  function openSQLitePersonalFabricDatabase(databasePath, pageEncryption) {
16049
16048
  if (!pageEncryption) {
16050
- return new Database(databasePath ?? ":memory:");
16049
+ return new SQLiteDatabase(databasePath ?? ":memory:");
16051
16050
  }
16052
16051
  if (!databasePath) {
16053
16052
  throw new Error("Guardian SQLite page encryption requires a filesystem database path.");
16054
16053
  }
16055
- const db = new PageEncryptedDatabase(databasePath);
16054
+ const db = new SQLiteDatabase(databasePath);
16056
16055
  if (pageEncryption.cipher === "sqlcipher") {
16057
16056
  db.pragma(`cipher=${sqliteStringLiteral("sqlcipher")}`);
16058
16057
  db.pragma(`legacy=${pageEncryption.legacy ?? 4}`);
@@ -22236,7 +22235,7 @@ var init_runtime = __esm({
22236
22235
  "use strict";
22237
22236
  init_src();
22238
22237
  init_src2();
22239
- GUARDIAN_CLI_VERSION = "0.1.0";
22238
+ GUARDIAN_CLI_VERSION = "0.1.1";
22240
22239
  GUARDIAN_PROFILE_SCHEMA_VERSION = "contextecf/project-guardian-profile/v1";
22241
22240
  GUARDIAN_NPM_PACKAGE_NAME = "@contextecf/guardian-cli";
22242
22241
  GUARDIAN_GLOBAL_INSTALL_COMMAND = `npm install -g ${GUARDIAN_NPM_PACKAGE_NAME}`;
@@ -15172,8 +15172,7 @@ import { createCipheriv, createDecipheriv, createHash, randomBytes } from "node:
15172
15172
  import { readFileSync } from "node:fs";
15173
15173
  import { copyFile, mkdir, readFile, stat } from "node:fs/promises";
15174
15174
  import path from "node:path";
15175
- import Database from "better-sqlite3";
15176
- import PageEncryptedDatabase from "better-sqlite3-multiple-ciphers";
15175
+ import SQLiteDatabase from "better-sqlite3-multiple-ciphers";
15177
15176
  var HashSchema2 = external_exports.string().regex(/^(sha256:)?[a-f0-9]{64}$/);
15178
15177
  var NonEmptyStringSchema2 = external_exports.string().trim().min(1);
15179
15178
  var DateTimeStringSchema2 = external_exports.string().datetime({ offset: true });
@@ -15966,12 +15965,12 @@ function buildSQLitePersonalFabricStorePageEncryption(options) {
15966
15965
  }
15967
15966
  function openSQLitePersonalFabricDatabase(databasePath, pageEncryption) {
15968
15967
  if (!pageEncryption) {
15969
- return new Database(databasePath ?? ":memory:");
15968
+ return new SQLiteDatabase(databasePath ?? ":memory:");
15970
15969
  }
15971
15970
  if (!databasePath) {
15972
15971
  throw new Error("Guardian SQLite page encryption requires a filesystem database path.");
15973
15972
  }
15974
- const db = new PageEncryptedDatabase(databasePath);
15973
+ const db = new SQLiteDatabase(databasePath);
15975
15974
  if (pageEncryption.cipher === "sqlcipher") {
15976
15975
  db.pragma(`cipher=${sqliteStringLiteral("sqlcipher")}`);
15977
15976
  db.pragma(`legacy=${pageEncryption.legacy ?? 4}`);
@@ -16276,7 +16275,7 @@ function cloneList(values) {
16276
16275
  }
16277
16276
 
16278
16277
  // packages/guardian-cli/src/runtime.ts
16279
- var GUARDIAN_CLI_VERSION = "0.1.0";
16278
+ var GUARDIAN_CLI_VERSION = "0.1.1";
16280
16279
  var GUARDIAN_PROFILE_SCHEMA_VERSION = "contextecf/project-guardian-profile/v1";
16281
16280
  var GUARDIAN_NPM_PACKAGE_NAME = "@contextecf/guardian-cli";
16282
16281
  var GUARDIAN_GLOBAL_INSTALL_COMMAND = `npm install -g ${GUARDIAN_NPM_PACKAGE_NAME}`;
@@ -1,7 +1,7 @@
1
1
  import type { Writable } from 'node:stream';
2
2
  import { type PolicyPackMarketplaceManifest } from '@contextecf/personal-fabric-contracts';
3
3
  import { SQLitePersonalFabricStore, type PersonalFabricDataImportResult, type PersonalFabricMutableDataDeleteResult, type SQLitePersonalFabricBackupResult } from '@contextecf/personal-fabric-store';
4
- export declare const GUARDIAN_CLI_VERSION = "0.1.0";
4
+ export declare const GUARDIAN_CLI_VERSION = "0.1.1";
5
5
  export declare const GUARDIAN_PROFILE_SCHEMA_VERSION = "contextecf/project-guardian-profile/v1";
6
6
  export declare const GUARDIAN_NPM_PACKAGE_NAME = "@contextecf/guardian-cli";
7
7
  export declare const GUARDIAN_GLOBAL_INSTALL_COMMAND = "npm install -g @contextecf/guardian-cli";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contextecf/guardian-cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Project Guardian local-first Personal Context Fabric CLI",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -46,7 +46,6 @@
46
46
  "mcp"
47
47
  ],
48
48
  "dependencies": {
49
- "better-sqlite3": "^13.0.1",
50
49
  "better-sqlite3-multiple-ciphers": "^12.11.1"
51
50
  },
52
51
  "devDependencies": {