@jskit-ai/crud-core 0.2.65 → 0.2.66

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jskit-ai/crud-core",
3
- "version": "0.2.65",
3
+ "version": "0.2.66",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=24.0.0"
@@ -9,7 +9,7 @@
9
9
  "./shared": "./src/shared/index.js"
10
10
  },
11
11
  "dependencies": {
12
- "@jskit-ai/crud-core": "0.2.65",
12
+ "@jskit-ai/crud-core": "0.2.66",
13
13
  "@jskit-ai/resource-core": "0.1.229",
14
14
  "@jskit-ai/resource-crud-core": "0.1.231"
15
15
  },
@@ -73,7 +73,8 @@ async function startFeatures(context, features) {
73
73
  function toolActionIds(actions, permissions) {
74
74
  const catalog = createServiceToolCatalog(actions, { maxDirectTools: 100 });
75
75
  const toolSet = catalog.resolveToolSet({ actor: { id: "7" }, permissions, surface: "home" });
76
- return toolSet.tools.map((tool) => tool.actionId).sort();
76
+ // The ids of the actions the tools reach: the tool that reads on in a long result reaches none.
77
+ return toolSet.tools.filter((tool) => tool.actionId).map((tool) => tool.actionId).sort();
77
78
  }
78
79
 
79
80
  test("the assistant reaches a CRUD action without HTTP routes only when a permission guards it", async (context) => {