hivemind-sqlite-database 0.4.3a5__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.
- {hivemind_sqlite_database-0.4.3a5 → hivemind_sqlite_database-0.4.3a7}/PKG-INFO +1 -1
- {hivemind_sqlite_database-0.4.3a5 → hivemind_sqlite_database-0.4.3a7}/hivemind_sqlite_database/__init__.py +4 -6
- {hivemind_sqlite_database-0.4.3a5 → hivemind_sqlite_database-0.4.3a7}/hivemind_sqlite_database/version.py +1 -1
- {hivemind_sqlite_database-0.4.3a5 → hivemind_sqlite_database-0.4.3a7}/hivemind_sqlite_database.egg-info/PKG-INFO +1 -1
- {hivemind_sqlite_database-0.4.3a5 → hivemind_sqlite_database-0.4.3a7}/tests/test_sqlitedb.py +3 -1
- {hivemind_sqlite_database-0.4.3a5 → hivemind_sqlite_database-0.4.3a7}/LICENSE.md +0 -0
- {hivemind_sqlite_database-0.4.3a5 → hivemind_sqlite_database-0.4.3a7}/README.md +0 -0
- {hivemind_sqlite_database-0.4.3a5 → hivemind_sqlite_database-0.4.3a7}/hivemind_sqlite_database.egg-info/SOURCES.txt +0 -0
- {hivemind_sqlite_database-0.4.3a5 → hivemind_sqlite_database-0.4.3a7}/hivemind_sqlite_database.egg-info/dependency_links.txt +0 -0
- {hivemind_sqlite_database-0.4.3a5 → hivemind_sqlite_database-0.4.3a7}/hivemind_sqlite_database.egg-info/entry_points.txt +0 -0
- {hivemind_sqlite_database-0.4.3a5 → hivemind_sqlite_database-0.4.3a7}/hivemind_sqlite_database.egg-info/requires.txt +0 -0
- {hivemind_sqlite_database-0.4.3a5 → hivemind_sqlite_database-0.4.3a7}/hivemind_sqlite_database.egg-info/top_level.txt +0 -0
- {hivemind_sqlite_database-0.4.3a5 → hivemind_sqlite_database-0.4.3a7}/pyproject.toml +0 -0
- {hivemind_sqlite_database-0.4.3a5 → hivemind_sqlite_database-0.4.3a7}/setup.cfg +0 -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", "
|
|
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,
|
|
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.
|
|
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"]),
|
{hivemind_sqlite_database-0.4.3a5 → hivemind_sqlite_database-0.4.3a7}/tests/test_sqlitedb.py
RENAMED
|
@@ -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
|
-
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|