memorysync-cli 1.4.0__tar.gz → 1.4.1__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.
- {memorysync_cli-1.4.0 → memorysync_cli-1.4.1}/PKG-INFO +1 -1
- memorysync_cli-1.4.1/src/memorysync_cli/_version.py +1 -0
- {memorysync_cli-1.4.0 → memorysync_cli-1.4.1}/src/memorysync_cli/commands/memory.py +13 -1
- {memorysync_cli-1.4.0 → memorysync_cli-1.4.1}/src/memorysync_cli/registry.json +1 -1
- memorysync_cli-1.4.0/src/memorysync_cli/_version.py +0 -1
- {memorysync_cli-1.4.0 → memorysync_cli-1.4.1}/.gitignore +0 -0
- {memorysync_cli-1.4.0 → memorysync_cli-1.4.1}/LICENSE +0 -0
- {memorysync_cli-1.4.0 → memorysync_cli-1.4.1}/README.md +0 -0
- {memorysync_cli-1.4.0 → memorysync_cli-1.4.1}/pyproject.toml +0 -0
- {memorysync_cli-1.4.0 → memorysync_cli-1.4.1}/src/memorysync_cli/__init__.py +0 -0
- {memorysync_cli-1.4.0 → memorysync_cli-1.4.1}/src/memorysync_cli/__main__.py +0 -0
- {memorysync_cli-1.4.0 → memorysync_cli-1.4.1}/src/memorysync_cli/args.py +0 -0
- {memorysync_cli-1.4.0 → memorysync_cli-1.4.1}/src/memorysync_cli/commands/__init__.py +0 -0
- {memorysync_cli-1.4.0 → memorysync_cli-1.4.1}/src/memorysync_cli/commands/admin.py +0 -0
- {memorysync_cli-1.4.0 → memorysync_cli-1.4.1}/src/memorysync_cli/commands/init.py +0 -0
- {memorysync_cli-1.4.0 → memorysync_cli-1.4.1}/src/memorysync_cli/commands/source.py +0 -0
- {memorysync_cli-1.4.0 → memorysync_cli-1.4.1}/src/memorysync_cli/commands/tooling.py +0 -0
- {memorysync_cli-1.4.0 → memorysync_cli-1.4.1}/src/memorysync_cli/completions.py +0 -0
- {memorysync_cli-1.4.0 → memorysync_cli-1.4.1}/src/memorysync_cli/config.py +0 -0
- {memorysync_cli-1.4.0 → memorysync_cli-1.4.1}/src/memorysync_cli/credentials.py +0 -0
- {memorysync_cli-1.4.0 → memorysync_cli-1.4.1}/src/memorysync_cli/errors.py +0 -0
- {memorysync_cli-1.4.0 → memorysync_cli-1.4.1}/src/memorysync_cli/evaluation.py +0 -0
- {memorysync_cli-1.4.0 → memorysync_cli-1.4.1}/src/memorysync_cli/http.py +0 -0
- {memorysync_cli-1.4.0 → memorysync_cli-1.4.1}/src/memorysync_cli/main.py +0 -0
- {memorysync_cli-1.4.0 → memorysync_cli-1.4.1}/src/memorysync_cli/output.py +0 -0
- {memorysync_cli-1.4.0 → memorysync_cli-1.4.1}/src/memorysync_cli/registry.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "1.4.1"
|
|
@@ -534,6 +534,18 @@ def import_memories(ctx: dict) -> dict:
|
|
|
534
534
|
}
|
|
535
535
|
if isinstance(entry.get("metadata"), dict):
|
|
536
536
|
record["metadata"] = entry["metadata"]
|
|
537
|
+
# Carried through because ``--async`` carries them: the same file sent
|
|
538
|
+
# both ways has to produce the same memories. The type rules mirror
|
|
539
|
+
# ``parse_records`` in the server-side importer.
|
|
540
|
+
event_type = entry.get("event_type")
|
|
541
|
+
if isinstance(event_type, str) and event_type.strip():
|
|
542
|
+
record["event_type"] = event_type.strip()
|
|
543
|
+
if isinstance(entry.get("tags"), list):
|
|
544
|
+
record["tags"] = entry["tags"]
|
|
545
|
+
importance = entry.get("importance")
|
|
546
|
+
# ``bool`` is a subclass of ``int``, and True is not a weighting.
|
|
547
|
+
if isinstance(importance, (int, float)) and not isinstance(importance, bool):
|
|
548
|
+
record["importance"] = float(importance)
|
|
537
549
|
records.append(record)
|
|
538
550
|
|
|
539
551
|
stripped = raw.strip()
|
|
@@ -673,7 +685,7 @@ def import_memories(ctx: dict) -> dict:
|
|
|
673
685
|
item = {
|
|
674
686
|
key: value
|
|
675
687
|
for key, value in record.items()
|
|
676
|
-
if key in {"text", "source", "metadata"}
|
|
688
|
+
if key in {"text", "source", "metadata", "event_type", "tags", "importance"}
|
|
677
689
|
}
|
|
678
690
|
if resume and record.get("ref"):
|
|
679
691
|
item["client_ref"] = record["ref"]
|
|
@@ -372,7 +372,7 @@
|
|
|
372
372
|
{
|
|
373
373
|
"name": "import",
|
|
374
374
|
"summary": "Bulk load memories from a JSON or JSONL file.",
|
|
375
|
-
"description": "Each record needs a text field, and may carry
|
|
375
|
+
"description": "Each record needs a text field, and may carry metadata, tags, source, event_type and importance. Every record in one import belongs to the same end user, from --user or your configured default. Validates the whole file before sending anything, and reports per-row errors with line numbers rather than failing on the first bad row. Pass --resume to make re-running the same file safe: each record is sent with an identifier the server remembers, so rows that already landed are reported as skipped instead of being stored a second time. Pass --async for a large file: the file is uploaded once and processed in the background, and you get a job id to poll with `memorysync import-status`.",
|
|
376
376
|
"usage": "memorysync import <file> [--user <id>] [--batch-size <n>] [--resume] [--async]",
|
|
377
377
|
"flags": [
|
|
378
378
|
{
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "1.4.0"
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|