Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ installs only patch releases; minor and major releases are announced with
and auto-update and its hints pass `--prerelease=if-necessary-or-explicit`, which
replaces the setting uv saved from an older install (#2164, #2177).

- The `bm_list` and `bm_find` `path` description no longer says `<project>/path`
reaches another project; the prefix must agree with `project`. The conflict error
now suggests passing the other project instead of leaving `project` out, which the
schema does not allow (#2218, #2232). Thanks @anhnt256.

- **A workspace-qualified project or a cloud external ID now reaches that cloud
project, even when a local project has the same name.** `--project <workspace>/<name>`
or a cloud project's external ID, in a `bm_*` MCP tool or a `bm tool` command, used to
Expand Down
2 changes: 1 addition & 1 deletion src/basic_memory/man/man3/bm-find(3).md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ The shell counterpart is find(1).
## PARAMETERS

- **project** (string, required) — Required project name, 'workspace/project', or project external id. Discover projects with bm_project_list(). Paths are relative to this project; a qualified path must agree with it.
- **path** (string, optional, default: "/") — A directory in the project, e.g. 'specs' or 'specs/active'. '/' is the project root; '<project>/path' addresses another project.
- **path** (string, optional, default: "/") — A directory in the project, e.g. 'specs' or 'specs/active'. '/' is the project root; '<project>/path' must agree with the project parameter.
- **name** (string | null, optional, default: None) — File-name glob, e.g. '*.md'. Not with `filters`.
- **filters** (object | null, optional, default: None) — Frontmatter filters as {field: condition}. Nested fields use dot notation ("schema.confidence"). A condition is a value for equality ({"status": "draft"}), null for absent-or-null ({"owner": null}), a list for contains-all ({"tags": ["a", "b"]}), or an operator object with $gt, $gte, $lt, $lte, $in, $between, $contains or $exists, e.g. {"priority": {"$in": ["high"]}}. Several operators on one field AND together.
- **fields** (array | null, optional, default: None) — Frontmatter fields to return per note (dot paths allowed), e.g. ["title", "priority"]. Needs `filters`.
Expand Down
2 changes: 1 addition & 1 deletion src/basic_memory/man/man3/bm-list(3).md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ The shell counterpart is ls(1).
## PARAMETERS

- **project** (string, required) — Required project name, 'workspace/project', or project external id. Discover projects with bm_project_list(). Paths are relative to this project; a qualified path must agree with it.
- **path** (string, optional, default: "/") — A directory in the project, e.g. 'specs' or 'specs/active'. '/' is the project root; '<project>/path' addresses another project.
- **path** (string, optional, default: "/") — A directory in the project, e.g. 'specs' or 'specs/active'. '/' is the project root; '<project>/path' must agree with the project parameter.
- **glob** (string | null, optional, default: None) — File-name glob, e.g. '*.md' or '*meeting*'.
- **sort** (string | null, optional, default: None) — File order. Folders always come first.
- **page** (integer, optional, default: 1) — Page number.
Expand Down
4 changes: 2 additions & 2 deletions src/basic_memory/mcp/project_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -1859,8 +1859,8 @@ async def resolve_project_path_route(
)
raise ProjectPrefixConflictError(
f"path names project '{detected}' but project '{explicit}' was passed — "
f"use '{detected}/<path>' alone, or project='{explicit}' with a "
"project-relative path"
f"pass project='{detected}', or keep project='{explicit}' and drop the "
f"'{detected}/' prefix"
)

if detected is not None:
Expand Down
2 changes: 1 addition & 1 deletion src/basic_memory/mcp/tool_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
validation_alias=AliasChoices("path", "dir_name", "folder"),
description=(
"A directory in the project, e.g. 'specs' or 'specs/active'. '/' is the "
"project root; '<project>/path' addresses another project."
"project root; '<project>/path' must agree with the project parameter."
),
),
]
Expand Down
4 changes: 2 additions & 2 deletions tests/mcp/test_project_path_routing.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,8 @@ async def test_conflicting_prefix_raises_naming_both(multi_project_config):

assert str(excinfo.value) == (
"path names project 'second-project' but project 'My Research' was passed — "
"use 'second-project/<path>' alone, or project='My Research' with a "
"project-relative path"
"pass project='second-project', or keep project='My Research' and drop the "
"'second-project/' prefix"
)


Expand Down
4 changes: 3 additions & 1 deletion tests/test_publish_skills_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,9 @@ def test_a_failed_upload_changes_nothing_live(archives: dict[str, Path]) -> None


def test_next_run_recovers_from_an_interrupted_one(archives: dict[str, Path]) -> None:
release = FakeRelease(_live(list(CONTRACT), "old"), fail_on=("rename", "basic-memory-chatgpt.zip"))
release = FakeRelease(
_live(list(CONTRACT), "old"), fail_on=("rename", "basic-memory-chatgpt.zip")
)
with pytest.raises(RuntimeError):
publish_skills_release.publish(release, archives)

Expand Down
Loading