@opengeni/runtime 6.37.1-canary.45179979774001 → 6.37.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/dist/index.js CHANGED
@@ -249,7 +249,7 @@ import {
249
249
  withoutAppendedText,
250
250
  workspaceEnvironmentInstructions,
251
251
  workspaceFilesystemLayout
252
- } from "./chunk-R2PX5LMG.js";
252
+ } from "./chunk-2BIOPETU.js";
253
253
  import {
254
254
  GOOGLE_CALENDAR_REST_API_BASE,
255
255
  GOOGLE_CALENDAR_REST_MCP_TOOLS,
@@ -5,4 +5,5 @@
5
5
  */
6
6
  export { ConnectionApprovalPreflightError, isMcpRequestNotSentError, isMcpServerUnreachableError, mcpToolScopeNeed, prepareAgentTools as prepareWorkspaceToolGatewayTools, type LocalMcpServerRegistration, type PreparedAgentTools as PreparedWorkspaceToolGatewayTools, type ResolveConnectionCredentialInput, type ResolveConnectionCredentialResult, sessionMcpApprovalConnectionId, } from "./index.js";
7
7
  export { isMcpAccountParameterChoiceError } from "./mcp-account-parameters.js";
8
+ export { mcpServerNamespace } from "./mcp-model-tool-name.js";
8
9
  export { createSecretArgumentResolver, handOffSecretArguments, literalSecretScope, secretArgumentMode, type LiteralSecretScope, type SecretArgumentMode, } from "./secret-argument-resolution.js";
@@ -10,13 +10,15 @@ import {
10
10
  prepareAgentTools,
11
11
  secretArgumentMode,
12
12
  sessionMcpApprovalConnectionId
13
- } from "./chunk-R2PX5LMG.js";
13
+ } from "./chunk-2BIOPETU.js";
14
14
  import "./chunk-APDY2XM3.js";
15
15
  import "./chunk-6PWZMCW3.js";
16
16
  import "./chunk-A5FG42CN.js";
17
17
  import "./chunk-ZR62ESZM.js";
18
18
  import "./chunk-CFKEEX7D.js";
19
- import "./chunk-LKZEVVB7.js";
19
+ import {
20
+ mcpServerNamespace
21
+ } from "./chunk-LKZEVVB7.js";
20
22
  import "./chunk-X4G3AEPB.js";
21
23
  import "./chunk-MG7AKY3X.js";
22
24
  import "./chunk-DM5NND2C.js";
@@ -39,6 +41,7 @@ export {
39
41
  isMcpRequestNotSentError,
40
42
  isMcpServerUnreachableError,
41
43
  literalSecretScope,
44
+ mcpServerNamespace,
42
45
  mcpToolScopeNeed,
43
46
  prepareAgentTools as prepareWorkspaceToolGatewayTools,
44
47
  secretArgumentMode,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeni/runtime",
3
- "version": "6.37.1-canary.45179979774001",
3
+ "version": "6.37.2",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -89,21 +89,21 @@
89
89
  "@openai/agents": "0.14.3",
90
90
  "@openai/agents-core": "0.14.3",
91
91
  "@openai/agents-extensions": "0.14.3",
92
- "@opengeni/agent-proto": "6.37.1-canary.45179979774001",
93
- "@opengeni/capabilities": "6.37.1-canary.45179979774001",
94
- "@opengeni/codemode": "6.37.1-canary.45179979774001",
95
- "@opengeni/codex": "6.37.1-canary.45179979774001",
96
- "@opengeni/config": "6.37.1-canary.45179979774001",
97
- "@opengeni/contracts": "6.37.1-canary.45179979774001",
98
- "@opengeni/decisions": "6.37.1-canary.45179979774001",
99
- "@opengeni/interaction": "6.37.1-canary.45179979774001",
100
- "@opengeni/jev": "6.37.1-canary.45179979774001",
101
- "@opengeni/network": "6.37.1-canary.45179979774001",
102
- "@opengeni/observability": "6.37.1-canary.45179979774001",
103
- "@opengeni/sdk": "6.37.1-canary.45179979774001",
104
- "@opengeni/tool-gateway": "6.37.1-canary.45179979774001",
105
- "@opengeni/vaults": "6.37.1-canary.45179979774001",
106
- "@opengeni/xai-subscription": "6.37.1-canary.45179979774001",
92
+ "@opengeni/agent-proto": "6.37.2",
93
+ "@opengeni/capabilities": "6.37.2",
94
+ "@opengeni/codemode": "6.37.2",
95
+ "@opengeni/codex": "6.37.2",
96
+ "@opengeni/config": "6.37.2",
97
+ "@opengeni/contracts": "6.37.2",
98
+ "@opengeni/decisions": "6.37.2",
99
+ "@opengeni/interaction": "6.37.2",
100
+ "@opengeni/jev": "6.37.2",
101
+ "@opengeni/network": "6.37.2",
102
+ "@opengeni/observability": "6.37.2",
103
+ "@opengeni/sdk": "6.37.2",
104
+ "@opengeni/tool-gateway": "6.37.2",
105
+ "@opengeni/vaults": "6.37.2",
106
+ "@opengeni/xai-subscription": "6.37.2",
107
107
  "@smithy/signature-v4": "5.6.12",
108
108
  "debug": "4.4.3",
109
109
  "e2b": "2.56.0",
@@ -118,6 +118,5 @@
118
118
  },
119
119
  "engines": {
120
120
  "node": ">=22.19"
121
- },
122
- "gitHead": "210d4cd0964c12341dcb13d3dc1da0093cad13a5"
121
+ }
123
122
  }
@@ -41,8 +41,8 @@ export default {
41
41
  async fetch(request, env) {
42
42
  const url = new URL(request.url);
43
43
  if (url.pathname === "/issues") {
44
- const result = await env.tools.call(LIST_ISSUES, { first: 20 });
45
- return Response.json(result);
44
+ const issues = await env.tools.call(LIST_ISSUES, { first: 20 });
45
+ return Response.json(issues);
46
46
  }
47
47
  return new Response("Not found", { status: 404 });
48
48
  },
@@ -57,10 +57,14 @@ export default {
57
57
  | `env.app` | `{id, versionId}`. |
58
58
  | `env.trigger` | `"request"` from `site.server.fetch`, `"manual"` from `app_server_run`. |
59
59
  | `env.runId` | This run's id, as `app_server_runs` lists it. |
60
- | `env.tools.call(tool, args)` | A tool the bundle lists in `tools`, as `"serverId/toolName"` from its `identity` in `ogtool show <path>` (not the `linear_3f9a5c` name you call it by), on a shared account. Returns the tool's result. |
60
+ | `env.tools.call(tool, args)` | A tool the bundle lists in `tools`, as `"serverId/toolName"` from its `identity` in `ogtool show <path>` (not the `linear_3f9a5c` name you call it by), on a shared account. Returns the tool's JSON value (its structured content, or its text parsed as JSON, else the text); a tool error throws with code `tool_error`. Pass `{ raw: true }` as a third argument for the full MCP result. |
61
61
  | `env.data` | App data in shared, shared_read or append_only collections: `query(collection, {where, sort, limit, cursor})` (as in `references/site-data.md`), `get(collection, id)` or `get(collection, {key})`, `put(collection, key, value)`, `insert(collection, value)`, `delete(collection, id)`, `write(operations)`. Writes are the app's, not the viewer's. |
62
62
  | `fetch(url, init)` | HTTPS to hosts the bundle lists in `egress`. Put a listed vault secret in a header value: `Authorization: "Bearer \{{secret:Shared/Weather/api key}}"`. |
63
63
 
64
+ Older code may read the MCP result: its source has `toolResults: "raw"`.
65
+ Upload it with that field unchanged, or remove its unwrapping of
66
+ `result.structuredContent` / `result.content` and drop the field.
67
+
64
68
  A refused call throws an `Error` whose `code` says why, for example
65
69
  `shared_account_required`, `tool_not_declared`, `egress_not_listed`,
66
70
  `run_ended` or `host_call_limit`.
@@ -135,7 +139,7 @@ back if they fail.
135
139
  Code with both `tools` and `egress` hosts also needs such an admin.
136
140
 
137
141
  To edit existing code, `artifacts_get_source` returns the version's `server`
138
- files as download URLs. App packages don't carry server code yet: after
142
+ files as download URLs, with its `toolResults`. App packages don't carry server code yet: after
139
143
  installing one, publish the code again.
140
144
 
141
145
  ## Check it
@@ -22,6 +22,8 @@ export {
22
22
  } from "./index";
23
23
  // A call that needs one of the account's values chosen; nothing was sent.
24
24
  export { isMcpAccountParameterChoiceError } from "./mcp-account-parameters";
25
+ // A server's namespace: the `server` in its tools' `<server>__<tool>` names.
26
+ export { mcpServerNamespace } from "./mcp-model-tool-name";
25
27
  // Execution-time `{{secret:…}}` argument resolution for gateway tool calls;
26
28
  // the same resolver model execution applies after approval.
27
29
  export {