hivemind-sqlite-database 0.4.3a6__tar.gz → 0.4.3a7__tar.gz

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 (14) hide show
  1. {hivemind_sqlite_database-0.4.3a6 → hivemind_sqlite_database-0.4.3a7}/PKG-INFO +1 -1
  2. {hivemind_sqlite_database-0.4.3a6 → hivemind_sqlite_database-0.4.3a7}/hivemind_sqlite_database/__init__.py +4 -6
  3. {hivemind_sqlite_database-0.4.3a6 → hivemind_sqlite_database-0.4.3a7}/hivemind_sqlite_database/version.py +1 -1
  4. {hivemind_sqlite_database-0.4.3a6 → hivemind_sqlite_database-0.4.3a7}/hivemind_sqlite_database.egg-info/PKG-INFO +1 -1
  5. {hivemind_sqlite_database-0.4.3a6 → hivemind_sqlite_database-0.4.3a7}/tests/test_sqlitedb.py +3 -1
  6. {hivemind_sqlite_database-0.4.3a6 → hivemind_sqlite_database-0.4.3a7}/LICENSE.md +0 -0
  7. {hivemind_sqlite_database-0.4.3a6 → hivemind_sqlite_database-0.4.3a7}/README.md +0 -0
  8. {hivemind_sqlite_database-0.4.3a6 → hivemind_sqlite_database-0.4.3a7}/hivemind_sqlite_database.egg-info/SOURCES.txt +0 -0
  9. {hivemind_sqlite_database-0.4.3a6 → hivemind_sqlite_database-0.4.3a7}/hivemind_sqlite_database.egg-info/dependency_links.txt +0 -0
  10. {hivemind_sqlite_database-0.4.3a6 → hivemind_sqlite_database-0.4.3a7}/hivemind_sqlite_database.egg-info/entry_points.txt +0 -0
  11. {hivemind_sqlite_database-0.4.3a6 → hivemind_sqlite_database-0.4.3a7}/hivemind_sqlite_database.egg-info/requires.txt +0 -0
  12. {hivemind_sqlite_database-0.4.3a6 → hivemind_sqlite_database-0.4.3a7}/hivemind_sqlite_database.egg-info/top_level.txt +0 -0
  13. {hivemind_sqlite_database-0.4.3a6 → hivemind_sqlite_database-0.4.3a7}/pyproject.toml +0 -0
  14. {hivemind_sqlite_database-0.4.3a6 → hivemind_sqlite_database-0.4.3a7}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hivemind-sqlite-database
3
- Version: 0.4.3a6
3
+ Version: 0.4.3a7
4
4
  Summary: sqlite database plugin for hivemind-core
5
5
  Author-email: jarbasAi <jarbasai@mailfence.com>
6
6
  License: Apache-2.0
@@ -15,7 +15,7 @@ from dataclasses import dataclass
15
15
  _VALID_COLUMNS = frozenset({
16
16
  "client_id", "api_key", "name", "description", "is_admin",
17
17
  "last_seen", "intent_blacklist", "skill_blacklist", "message_blacklist",
18
- "allowed_types", "crypto_key", "password",
18
+ "allowed_types", "password",
19
19
  "can_broadcast", "can_escalate", "can_propagate", "metadata",
20
20
  })
21
21
 
@@ -175,7 +175,6 @@ class SQLiteDB(AbstractDB):
175
175
  skill_blacklist TEXT,
176
176
  message_blacklist TEXT,
177
177
  allowed_types TEXT,
178
- crypto_key VARCHAR(16),
179
178
  password TEXT,
180
179
  can_broadcast BOOLEAN DEFAULT TRUE,
181
180
  can_escalate BOOLEAN DEFAULT TRUE,
@@ -287,9 +286,9 @@ class SQLiteDB(AbstractDB):
287
286
  INSERT OR REPLACE INTO clients (
288
287
  client_id, api_key, name, description, is_admin,
289
288
  last_seen, intent_blacklist, skill_blacklist,
290
- message_blacklist, allowed_types, crypto_key, password,
289
+ message_blacklist, allowed_types, password,
291
290
  can_broadcast, can_escalate, can_propagate, metadata
292
- ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
291
+ ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
293
292
  """, (
294
293
  client.client_id, client.api_key, client.name, client.description,
295
294
  client.is_admin, client.last_seen,
@@ -302,7 +301,7 @@ class SQLiteDB(AbstractDB):
302
301
  None,
303
302
  None,
304
303
  json.dumps(client.allowed_types),
305
- client.crypto_key, client.password,
304
+ client.password,
306
305
  client.can_broadcast, client.can_escalate, client.can_propagate,
307
306
  metadata_json,
308
307
  ))
@@ -420,7 +419,6 @@ class SQLiteDB(AbstractDB):
420
419
  is_admin=bool(row["is_admin"]),
421
420
  last_seen=row["last_seen"],
422
421
  allowed_types=json.loads(row["allowed_types"] or "[]"),
423
- crypto_key=row["crypto_key"],
424
422
  password=row["password"],
425
423
  can_broadcast=bool(row["can_broadcast"]),
426
424
  can_escalate=bool(row["can_escalate"]),
@@ -2,7 +2,7 @@
2
2
  VERSION_MAJOR = 0
3
3
  VERSION_MINOR = 4
4
4
  VERSION_BUILD = 3
5
- VERSION_ALPHA = 6
5
+ VERSION_ALPHA = 7
6
6
  # END_VERSION_BLOCK
7
7
 
8
8
  __version__ = f"{VERSION_MAJOR}.{VERSION_MINOR}.{VERSION_BUILD}" + (f"a{VERSION_ALPHA}" if VERSION_ALPHA else "")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hivemind-sqlite-database
3
- Version: 0.4.3a6
3
+ Version: 0.4.3a7
4
4
  Summary: sqlite database plugin for hivemind-core
5
5
  Author-email: jarbasAi <jarbasai@mailfence.com>
6
6
  License: Apache-2.0
@@ -405,7 +405,9 @@ class TestSQLiteDBRoundTrip(unittest.TestCase):
405
405
  self.assertEqual(r.description, "a test")
406
406
  self.assertFalse(r.is_admin)
407
407
  self.assertEqual(r.last_seen, 1234567890.0)
408
- self.assertEqual(r.crypto_key, "1234567890123456")
408
+ # crypto_key is v3-Noise-only dead weight: no longer persisted or
409
+ # read back, so the field falls back to the Client default.
410
+ self.assertIsNone(r.crypto_key)
409
411
  self.assertEqual(r.password, "secret")
410
412
  self.assertFalse(r.can_escalate)
411
413
  # After SCHEMA_VERSION=2: legacy skill/intent kwargs auto-migrate