ai-memory-cli 0.1.0__tar.gz → 0.1.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ai-memory-cli
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: Python CLI for AI Memory terminal capture and offline sync.
5
5
  Author: AI Memory
6
6
  License-Expression: MIT
@@ -47,13 +47,17 @@ python -m pip install -e .
47
47
  ## Basic flow
48
48
 
49
49
  ```powershell
50
- ai-memory auth --token <app-issued-cli-token> --api-url https://api.your-domain.com
51
- ai-memory init --project my-project --repo owner/repo --workspace .
52
- ai-memory workspace connect --path . --repo owner/repo --editor vscode --package-manager pip
53
- ai-memory watch
50
+ python -m ai_memory_cli auth --token TOKEN_FROM_WEBSITE --api-url https://api.your-domain.com
51
+ python -m ai_memory_cli init --project my-project --repo owner/repo --workspace .
52
+ python -m ai_memory_cli workspace connect --path . --repo owner/repo --editor vscode --package-manager pip
53
+ python -m ai_memory_cli watch
54
54
  ```
55
55
 
56
- Use `ai-memory run -- <command>` when you only want to record one command.
56
+ Use `python -m ai_memory_cli run -- COMMAND` when you only want to record one command.
57
+
58
+ On Windows, `python -m ai_memory_cli ...` is the safest form because it avoids PATH issues and Device Guard policies that can block pip's generated `ai-memory.exe` launcher. Also avoid angle bracket placeholders in CMD because they are treated as file redirection.
59
+
60
+ Inside `watch`, type the real command you want to capture, for example `python --version`. Do not type `python -m ai_memory_cli run -- ...` inside `watch`, or you will capture the nested CLI command too.
57
61
 
58
62
  ## Storage
59
63
 
@@ -25,13 +25,17 @@ python -m pip install -e .
25
25
  ## Basic flow
26
26
 
27
27
  ```powershell
28
- ai-memory auth --token <app-issued-cli-token> --api-url https://api.your-domain.com
29
- ai-memory init --project my-project --repo owner/repo --workspace .
30
- ai-memory workspace connect --path . --repo owner/repo --editor vscode --package-manager pip
31
- ai-memory watch
28
+ python -m ai_memory_cli auth --token TOKEN_FROM_WEBSITE --api-url https://api.your-domain.com
29
+ python -m ai_memory_cli init --project my-project --repo owner/repo --workspace .
30
+ python -m ai_memory_cli workspace connect --path . --repo owner/repo --editor vscode --package-manager pip
31
+ python -m ai_memory_cli watch
32
32
  ```
33
33
 
34
- Use `ai-memory run -- <command>` when you only want to record one command.
34
+ Use `python -m ai_memory_cli run -- COMMAND` when you only want to record one command.
35
+
36
+ On Windows, `python -m ai_memory_cli ...` is the safest form because it avoids PATH issues and Device Guard policies that can block pip's generated `ai-memory.exe` launcher. Also avoid angle bracket placeholders in CMD because they are treated as file redirection.
37
+
38
+ Inside `watch`, type the real command you want to capture, for example `python --version`. Do not type `python -m ai_memory_cli run -- ...` inside `watch`, or you will capture the nested CLI command too.
35
39
 
36
40
  ## Storage
37
41
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "ai-memory-cli"
7
- version = "0.1.0"
7
+ version = "0.1.1"
8
8
  description = "Python CLI for AI Memory terminal capture and offline sync."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -1,3 +1,3 @@
1
1
  """AI Memory terminal capture CLI."""
2
2
 
3
- __version__ = "0.1.0"
3
+ __version__ = "0.1.1"
@@ -130,7 +130,7 @@ def api_url(config: dict[str, Any]) -> str:
130
130
  def require_token(config: dict[str, Any]) -> str:
131
131
  token = str(config.get("token") or "").strip()
132
132
  if not token:
133
- raise SystemExit("Run ai-memory auth --token <app-issued-cli-token> first.")
133
+ raise SystemExit("Run python -m ai_memory_cli auth --token TOKEN_FROM_WEBSITE first.")
134
134
  return token
135
135
 
136
136
 
@@ -261,7 +261,7 @@ def sync_events(home: Path, config: dict[str, Any], limit: int = 50, quiet: bool
261
261
  token = str(config.get("token") or "").strip()
262
262
  if not token:
263
263
  if not quiet:
264
- print("No CLI token saved. Events remain queued until ai-memory auth is configured.")
264
+ print("No CLI token saved. Events remain queued until python -m ai_memory_cli auth is configured.")
265
265
  return 0
266
266
  paths = sorted((home / "outbox").glob("*.json"))[:limit]
267
267
  if not paths:
@@ -408,7 +408,7 @@ def command_init(args: argparse.Namespace) -> int:
408
408
  print(f"Initialized project: {project.get('id', payload['project'])}")
409
409
  except Exception as exc:
410
410
  print(f"Project config saved locally. Server init will need retry: {exc}", file=sys.stderr)
411
- print("Start terminal capture with: ai-memory watch")
411
+ print("Start terminal capture with: python -m ai_memory_cli watch")
412
412
  return 0
413
413
 
414
414
 
@@ -484,7 +484,7 @@ def command_chat_connect(args: argparse.Namespace) -> int:
484
484
  def command_run(args: argparse.Namespace) -> int:
485
485
  command = command_line(args.command)
486
486
  if not command:
487
- raise SystemExit("Pass a command after --, for example: ai-memory run -- python --version")
487
+ raise SystemExit("Pass a command after --, for example: python -m ai_memory_cli run -- python --version")
488
488
  home = cli_home()
489
489
  config = load_config(home)
490
490
  return capture_command(home, config, command, args.include_excluded, "run")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ai-memory-cli
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: Python CLI for AI Memory terminal capture and offline sync.
5
5
  Author: AI Memory
6
6
  License-Expression: MIT
@@ -47,13 +47,17 @@ python -m pip install -e .
47
47
  ## Basic flow
48
48
 
49
49
  ```powershell
50
- ai-memory auth --token <app-issued-cli-token> --api-url https://api.your-domain.com
51
- ai-memory init --project my-project --repo owner/repo --workspace .
52
- ai-memory workspace connect --path . --repo owner/repo --editor vscode --package-manager pip
53
- ai-memory watch
50
+ python -m ai_memory_cli auth --token TOKEN_FROM_WEBSITE --api-url https://api.your-domain.com
51
+ python -m ai_memory_cli init --project my-project --repo owner/repo --workspace .
52
+ python -m ai_memory_cli workspace connect --path . --repo owner/repo --editor vscode --package-manager pip
53
+ python -m ai_memory_cli watch
54
54
  ```
55
55
 
56
- Use `ai-memory run -- <command>` when you only want to record one command.
56
+ Use `python -m ai_memory_cli run -- COMMAND` when you only want to record one command.
57
+
58
+ On Windows, `python -m ai_memory_cli ...` is the safest form because it avoids PATH issues and Device Guard policies that can block pip's generated `ai-memory.exe` launcher. Also avoid angle bracket placeholders in CMD because they are treated as file redirection.
59
+
60
+ Inside `watch`, type the real command you want to capture, for example `python --version`. Do not type `python -m ai_memory_cli run -- ...` inside `watch`, or you will capture the nested CLI command too.
57
61
 
58
62
  ## Storage
59
63
 
File without changes
File without changes