dotmem 0.1.7 → 0.1.8

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/agent.cjs CHANGED
@@ -18,39 +18,12 @@ var __export = (target, all) => {
18
18
  __defProp(target, name, { get: all[name], enumerable: true });
19
19
  };
20
20
 
21
- // core/suppress-idb-warning.ts
22
- var orig;
23
- var init_suppress_idb_warning = __esm({
24
- "core/suppress-idb-warning.ts"() {
25
- orig = console.warn.bind(console);
26
- console.warn = (...args) => {
27
- if (typeof args[0] === "string" && args[0].includes("IndexedDB is not available")) return;
28
- orig(...args);
29
- };
30
- }
31
- });
32
-
33
- // core/idb.ts
34
- var idb;
35
- var init_idb = __esm({
36
- "core/idb.ts"() {
37
- idb = {
38
- db: {},
39
- table: {},
40
- data: {},
41
- _disabled: true,
42
- _warning: "IndexedDB is not available in this environment. Use dotmem store or session for persistence."
43
- };
44
- }
45
- });
46
-
47
21
  // core/global.ts
48
22
  var global_exports = {};
49
23
  __export(global_exports, {
50
24
  dispatch: () => memorio.dispatch,
51
25
  getPlatform: () => getPlatform,
52
26
  hlc: () => memorio.hlc,
53
- idb: () => idb,
54
27
  session: () => memorio.session,
55
28
  state: () => memorio.state,
56
29
  store: () => memorio.store
@@ -58,8 +31,6 @@ __export(global_exports, {
58
31
  var getPlatform;
59
32
  var init_global = __esm({
60
33
  "core/global.ts"() {
61
- init_suppress_idb_warning();
62
- init_idb();
63
34
  getPlatform = /* @__PURE__ */ __name(() => {
64
35
  const proc = globalThis.process;
65
36
  if (proc) {
package/agent.js CHANGED
@@ -16,39 +16,12 @@ var __export = (target, all) => {
16
16
  __defProp(target, name, { get: all[name], enumerable: true });
17
17
  };
18
18
 
19
- // core/suppress-idb-warning.ts
20
- var orig;
21
- var init_suppress_idb_warning = __esm({
22
- "core/suppress-idb-warning.ts"() {
23
- orig = console.warn.bind(console);
24
- console.warn = (...args) => {
25
- if (typeof args[0] === "string" && args[0].includes("IndexedDB is not available")) return;
26
- orig(...args);
27
- };
28
- }
29
- });
30
-
31
- // core/idb.ts
32
- var idb;
33
- var init_idb = __esm({
34
- "core/idb.ts"() {
35
- idb = {
36
- db: {},
37
- table: {},
38
- data: {},
39
- _disabled: true,
40
- _warning: "IndexedDB is not available in this environment. Use dotmem store or session for persistence."
41
- };
42
- }
43
- });
44
-
45
19
  // core/global.ts
46
20
  var global_exports = {};
47
21
  __export(global_exports, {
48
22
  dispatch: () => dispatch,
49
23
  getPlatform: () => getPlatform,
50
24
  hlc: () => hlc,
51
- idb: () => idb,
52
25
  session: () => session,
53
26
  state: () => state,
54
27
  store: () => store
@@ -56,8 +29,6 @@ __export(global_exports, {
56
29
  var getPlatform;
57
30
  var init_global = __esm({
58
31
  "core/global.ts"() {
59
- init_suppress_idb_warning();
60
- init_idb();
61
32
  getPlatform = /* @__PURE__ */ __name(() => {
62
33
  const proc = globalThis.process;
63
34
  if (proc) {
package/bin/cli.cjs CHANGED
@@ -9,11 +9,6 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
9
9
 
10
10
  var process__default = /*#__PURE__*/_interopDefault(process);
11
11
 
12
- var __origWarn = console.warn.bind(console);
13
- console.warn = (...args2) => {
14
- if (typeof args2[0] === "string" && args2[0].includes("IndexedDB is not available")) return;
15
- __origWarn(...args2);
16
- };
17
12
  var rawArgs = process__default.default.argv.slice(2);
18
13
  var storageRootFlagIndex = rawArgs.indexOf("--storage-root");
19
14
  var hasStorageRootFlag = storageRootFlagIndex !== -1;
package/bin/cli.js CHANGED
@@ -2,11 +2,6 @@
2
2
  import process from 'process';
3
3
  import { fileURLToPath } from 'url';
4
4
 
5
- var __origWarn = console.warn.bind(console);
6
- console.warn = (...args2) => {
7
- if (typeof args2[0] === "string" && args2[0].includes("IndexedDB is not available")) return;
8
- __origWarn(...args2);
9
- };
10
5
  var rawArgs = process.argv.slice(2);
11
6
  var storageRootFlagIndex = rawArgs.indexOf("--storage-root");
12
7
  var hasStorageRootFlag = storageRootFlagIndex !== -1;
package/bin/mcp.cjs CHANGED
@@ -7,11 +7,6 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
7
7
 
8
8
  var process__default = /*#__PURE__*/_interopDefault(process);
9
9
 
10
- var __origWarn = console.warn.bind(console);
11
- console.warn = (...args) => {
12
- if (typeof args[0] === "string" && args[0].includes("IndexedDB is not available")) return;
13
- __origWarn(...args);
14
- };
15
10
  var nodeMajorVersion = Number.parseInt(process__default.default.versions.node.split(".")[0] ?? "", 10);
16
11
  if (!Number.isInteger(nodeMajorVersion) || nodeMajorVersion < 20) {
17
12
  console.error("dotmem-mcp requires Node.js >=20; the normal dotmem runtime remains compatible with its declared Node.js version.");
package/bin/mcp.js CHANGED
@@ -1,11 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import process from 'process';
3
3
 
4
- var __origWarn = console.warn.bind(console);
5
- console.warn = (...args) => {
6
- if (typeof args[0] === "string" && args[0].includes("IndexedDB is not available")) return;
7
- __origWarn(...args);
8
- };
9
4
  var nodeMajorVersion = Number.parseInt(process.versions.node.split(".")[0] ?? "", 10);
10
5
  if (!Number.isInteger(nodeMajorVersion) || nodeMajorVersion < 20) {
11
6
  console.error("dotmem-mcp requires Node.js >=20; the normal dotmem runtime remains compatible with its declared Node.js version.");
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "format": "dotmem.built-in-context",
3
3
  "formatVersion": 1,
4
- "sourceVersion": "0.1.7",
4
+ "sourceVersion": "0.1.8",
5
5
  "buildFormatVersion": 1,
6
6
  "documents": [
7
7
  {
@@ -150,6 +150,6 @@
150
150
  }
151
151
  ],
152
152
  "manifestDigest": "sha256:9e81d60367f76cd1a31d16eaf0dff55145bf8f7d1968b59a631724da8ba4dae7",
153
- "aggregateDigest": "sha256:e9944a7d80fb153891be20724be73712154b18a832ec92f7baf75e924a39e8b4",
153
+ "aggregateDigest": "sha256:2cd6e0f7a8164ffdc79580498c700e9c0bf57b85507d7cec4c74cd88fdbeced7",
154
154
  "documentCount": 16
155
155
  }