@topy-ai/maggie 0.6.0 → 0.6.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 +2 -2
- package/bundled-tools/clis/maggie_memory.py +14 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -110,8 +110,8 @@ for adapter, privacy, apply, rollback, and release gates.
|
|
|
110
110
|
Recommended upgrade sequence for the current release:
|
|
111
111
|
|
|
112
112
|
```bash
|
|
113
|
-
npx @topy-ai/maggie@0.6.
|
|
114
|
-
npx @topy-ai/maggie@0.6.
|
|
113
|
+
npx @topy-ai/maggie@0.6.1 update --project . --force
|
|
114
|
+
npx @topy-ai/maggie@0.6.1 cleanup --project .
|
|
115
115
|
```
|
|
116
116
|
|
|
117
117
|
## MaggieDash lifecycle
|
|
@@ -20,19 +20,25 @@ def main() -> int:
|
|
|
20
20
|
parser = argparse.ArgumentParser(prog="maggie memory", description=__doc__)
|
|
21
21
|
parser.add_argument("--project", default=".")
|
|
22
22
|
sub = parser.add_subparsers(dest="command", required=True)
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
def add_project(command: argparse.ArgumentParser) -> argparse.ArgumentParser:
|
|
24
|
+
# SUPPRESS preserves a global --project supplied before the command
|
|
25
|
+
# while also accepting the documented, conventional position after it.
|
|
26
|
+
command.add_argument("--project", default=argparse.SUPPRESS)
|
|
27
|
+
return command
|
|
28
|
+
|
|
29
|
+
add_project(sub.add_parser("init"))
|
|
30
|
+
listing = add_project(sub.add_parser("list"))
|
|
25
31
|
listing.add_argument("--kind", choices=sorted(memory.KINDS), default=None)
|
|
26
32
|
listing.add_argument("--status", choices=sorted(memory.STATUSES), default=None)
|
|
27
33
|
listing.add_argument("--skill", default="")
|
|
28
34
|
listing.add_argument("--query", default="")
|
|
29
|
-
search = sub.add_parser("search")
|
|
35
|
+
search = add_project(sub.add_parser("search"))
|
|
30
36
|
search.add_argument("query")
|
|
31
37
|
search.add_argument("--skill", default="")
|
|
32
|
-
context = sub.add_parser("context")
|
|
38
|
+
context = add_project(sub.add_parser("context"))
|
|
33
39
|
context.add_argument("--skill", default="")
|
|
34
40
|
context.add_argument("--query", default="")
|
|
35
|
-
add = sub.add_parser("add")
|
|
41
|
+
add = add_project(sub.add_parser("add"))
|
|
36
42
|
add.add_argument("kind", choices=("preferences", "conventions", "lessons"))
|
|
37
43
|
add.add_argument("--scope", choices=sorted(memory.SCOPES), required=True)
|
|
38
44
|
add.add_argument("--type", dest="item_type", required=True)
|
|
@@ -48,7 +54,7 @@ def main() -> int:
|
|
|
48
54
|
add.add_argument("--status", choices=sorted(memory.STATUSES), default="candidate")
|
|
49
55
|
add.add_argument("--expires-at", default="")
|
|
50
56
|
add.add_argument("--supersedes", default="")
|
|
51
|
-
error = sub.add_parser("record-error")
|
|
57
|
+
error = add_project(sub.add_parser("record-error"))
|
|
52
58
|
error.add_argument("--skill", required=True)
|
|
53
59
|
error.add_argument("--message", required=True)
|
|
54
60
|
error.add_argument("--fingerprint", default="")
|
|
@@ -57,11 +63,11 @@ def main() -> int:
|
|
|
57
63
|
error.add_argument("--validation", default="")
|
|
58
64
|
error.add_argument("--fixed", action="store_true")
|
|
59
65
|
error.add_argument("--trigger", action="append", default=[])
|
|
60
|
-
transition = sub.add_parser("transition")
|
|
66
|
+
transition = add_project(sub.add_parser("transition"))
|
|
61
67
|
transition.add_argument("kind", choices=sorted(memory.KINDS))
|
|
62
68
|
transition.add_argument("item_id")
|
|
63
69
|
transition.add_argument("status", choices=sorted(memory.STATUSES))
|
|
64
|
-
export = sub.add_parser("export")
|
|
70
|
+
export = add_project(sub.add_parser("export"))
|
|
65
71
|
export.add_argument("--output", required=True)
|
|
66
72
|
export.add_argument("--public-safe", action="store_true")
|
|
67
73
|
args = parser.parse_args()
|