tapestry-cli 0.1.3__tar.gz → 0.1.4__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: tapestry-cli
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: Tapestry command-line interface — onboard projects, inspect state, open the Observatory.
5
5
  Author: Liz Osborn
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "tapestry-cli"
7
- version = "0.1.3"
7
+ version = "0.1.4"
8
8
  description = "Tapestry command-line interface — onboard projects, inspect state, open the Observatory."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -0,0 +1,17 @@
1
+ """tapestry-cli — command-line interface for Tapestry.
2
+
3
+ Stdlib-only. Cross-platform. Subcommands:
4
+ tapestry init — onboard the current directory as a Tapestry consuming project
5
+ tapestry version — print version + diagnostic info
6
+
7
+ (`loom` remains a deprecated command alias; see [project.scripts] in pyproject.)
8
+ """
9
+ from importlib.metadata import PackageNotFoundError
10
+ from importlib.metadata import version as _pkg_version
11
+
12
+ try:
13
+ # Authoritative source: the installed package's own metadata, so this can
14
+ # never drift from pyproject again (the 0.1.0-vs-0.1.3 bug it replaces).
15
+ __version__ = _pkg_version("tapestry-cli")
16
+ except PackageNotFoundError: # running from a source checkout, not pip-installed
17
+ __version__ = "0.1.4"
@@ -237,9 +237,14 @@ def _write_mcp_config(project_dir: Path) -> None:
237
237
  provides memory access.
238
238
  """
239
239
  mcp_path = project_dir / ".mcp.json"
240
+ # Mode-agnostic auth header: references the shared-secret env var by name.
241
+ # When TAPESTRY_MEMORY_API_KEY is unset the client sends "Bearer " (empty),
242
+ # which the memory server treats as anonymous — so this config is valid both
243
+ # before the credential exists and after, and needs no change at flip time.
240
244
  loom_memory_entry = {
241
245
  "type": "http",
242
246
  "url": LOOM_MEMORY_MCP_URL,
247
+ "headers": {"Authorization": "Bearer ${TAPESTRY_MEMORY_API_KEY}"},
243
248
  }
244
249
 
245
250
  if mcp_path.exists():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tapestry-cli
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: Tapestry command-line interface — onboard projects, inspect state, open the Observatory.
5
5
  Author: Liz Osborn
6
6
  License: MIT
@@ -1,7 +0,0 @@
1
- """tapestry-cli — command-line interface for the-loom.
2
-
3
- Stdlib-only. Cross-platform. Subcommands:
4
- loom init — onboard the current directory as a loom consuming project
5
- loom version — print version + diagnostic info
6
- """
7
- __version__ = "0.1.0"
File without changes
File without changes