@opengeni/core 2.7.5-canary.1 → 2.7.5-canary.2

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": "@opengeni/core",
3
- "version": "2.7.5-canary.1",
3
+ "version": "2.7.5-canary.2",
4
4
  "description": "OpenGeni framework-agnostic core: the domain, access, and billing layers (neutral access, off-HTTP V2 surface). Behavior-preserving extraction from apps/api — keeps Hono's HTTPException for error throwing (typed-errors cleanup deferred).",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -54,17 +54,17 @@
54
54
  },
55
55
  "dependencies": {
56
56
  "@modelcontextprotocol/sdk": "^1.29.0",
57
- "@opengeni/capabilities": "^0.3.2-canary.1",
58
- "@opengeni/codex": "^0.2.21-canary.1",
59
- "@opengeni/config": "^1.0.0-canary.1",
60
- "@opengeni/contracts": "^2.13.0-canary.1",
61
- "@opengeni/db": "^4.0.0-canary.1",
62
- "@opengeni/documents": "^0.8.19-canary.1",
63
- "@opengeni/events": "^0.4.17-canary.1",
64
- "@opengeni/network": "^0.3.0-canary.1",
65
- "@opengeni/observability": "^0.8.19-canary.1",
66
- "@opengeni/runtime": "^2.3.0-canary.1",
67
- "@opengeni/storage": "^0.2.120-canary.1",
57
+ "@opengeni/capabilities": "^0.3.2-canary.2",
58
+ "@opengeni/codex": "^0.2.21-canary.2",
59
+ "@opengeni/config": "^1.0.0-canary.2",
60
+ "@opengeni/contracts": "^2.13.0-canary.2",
61
+ "@opengeni/db": "^4.0.0-canary.2",
62
+ "@opengeni/documents": "^0.8.19-canary.2",
63
+ "@opengeni/events": "^0.4.17-canary.2",
64
+ "@opengeni/network": "^0.3.0-canary.2",
65
+ "@opengeni/observability": "^0.8.19-canary.2",
66
+ "@opengeni/runtime": "^2.3.0-canary.2",
67
+ "@opengeni/storage": "^0.2.120-canary.2",
68
68
  "hono": "^4.12.18",
69
69
  "zod": "^4.2.1"
70
70
  },
@@ -1715,8 +1715,9 @@ export async function postUserMessageTurn(
1715
1715
  * `session_create` tool: payload validation, resource/tool/variableSet
1716
1716
  * checks, usage limits, session start, and usage recording. `rawPayload` is
1717
1717
  * the unparsed request body so absent-vs-empty execution-context fields keep
1718
- * their meaning: a child inherits omitted resources/tools/mcpServers from its
1719
- * trusted immediate parent, while explicit arrays (including []) win. A
1718
+ * their meaning: a child inherits repositories (never files), tools, and MCP
1719
+ * servers from its trusted immediate parent when omitted; explicit arrays
1720
+ * (including []) win. A
1720
1721
  * top-level create with omitted tools applies workspace-default capability MCPs.
1721
1722
  */
1722
1723
  export function resolveChildGoalFromAcceptedSnapshot(
@@ -2102,7 +2103,8 @@ export async function createSessionForRequestWithOutcome(
2102
2103
  const resources = normalizeResources(
2103
2104
  hasOwnProperty(rawPayload, "resources")
2104
2105
  ? payload.resources
2105
- : (parentSession?.resources ?? payload.resources),
2106
+ : (parentSession?.resources.filter((resource) => resource.kind === "repository") ??
2107
+ payload.resources),
2106
2108
  );
2107
2109
  const inheritedOrSubmittedSkills = hasOwnProperty(rawPayload, "skills")
2108
2110
  ? payload.skills