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.
- {tapestry_cli-0.1.3 → tapestry_cli-0.1.4}/PKG-INFO +1 -1
- {tapestry_cli-0.1.3 → tapestry_cli-0.1.4}/pyproject.toml +1 -1
- tapestry_cli-0.1.4/tapestry_cli/__init__.py +17 -0
- {tapestry_cli-0.1.3 → tapestry_cli-0.1.4}/tapestry_cli/init.py +5 -0
- {tapestry_cli-0.1.3 → tapestry_cli-0.1.4}/tapestry_cli.egg-info/PKG-INFO +1 -1
- tapestry_cli-0.1.3/tapestry_cli/__init__.py +0 -7
- {tapestry_cli-0.1.3 → tapestry_cli-0.1.4}/README.md +0 -0
- {tapestry_cli-0.1.3 → tapestry_cli-0.1.4}/setup.cfg +0 -0
- {tapestry_cli-0.1.3 → tapestry_cli-0.1.4}/tapestry_cli/__main__.py +0 -0
- {tapestry_cli-0.1.3 → tapestry_cli-0.1.4}/tapestry_cli/cli.py +0 -0
- {tapestry_cli-0.1.3 → tapestry_cli-0.1.4}/tapestry_cli/make_plugin.py +0 -0
- {tapestry_cli-0.1.3 → tapestry_cli-0.1.4}/tapestry_cli/observatory.py +0 -0
- {tapestry_cli-0.1.3 → tapestry_cli-0.1.4}/tapestry_cli/onboard.py +0 -0
- {tapestry_cli-0.1.3 → tapestry_cli-0.1.4}/tapestry_cli.egg-info/SOURCES.txt +0 -0
- {tapestry_cli-0.1.3 → tapestry_cli-0.1.4}/tapestry_cli.egg-info/dependency_links.txt +0 -0
- {tapestry_cli-0.1.3 → tapestry_cli-0.1.4}/tapestry_cli.egg-info/entry_points.txt +0 -0
- {tapestry_cli-0.1.3 → tapestry_cli-0.1.4}/tapestry_cli.egg-info/top_level.txt +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "tapestry-cli"
|
|
7
|
-
version = "0.1.
|
|
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():
|
|
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
|