@opengeni/runtime 6.5.2-canary.41607687019001 → 6.7.0
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/agent-instructions/modules/subagents.d.ts +4 -1
- package/dist/agent-instructions/tool-availability.d.ts +12 -0
- package/dist/agent-instructions/types.d.ts +16 -2
- package/dist/assets/codemode-client.json +1 -1
- package/dist/{chunk-HYSMFK7K.js → chunk-3MNZZ2B4.js} +34 -12
- package/dist/chunk-3MNZZ2B4.js.map +1 -0
- package/dist/{chunk-PZPM6Z62.js → chunk-77NQGL66.js} +4 -2
- package/dist/chunk-77NQGL66.js.map +1 -0
- package/dist/{chunk-AE7DWNDQ.js → chunk-FNAYH3SN.js} +572 -278
- package/dist/chunk-FNAYH3SN.js.map +1 -0
- package/dist/{chunk-RYNEQOTX.js → chunk-GFAFQMZV.js} +3 -3
- package/dist/{chunk-ZNFEE7S5.js → chunk-JF5UTPEU.js} +2 -2
- package/dist/{chunk-GRNURW7Y.js → chunk-JY5NSZ37.js} +294 -36
- package/dist/chunk-JY5NSZ37.js.map +1 -0
- package/dist/{chunk-XXCIHKHP.js → chunk-OAW6MMSY.js} +3 -3
- package/dist/{chunk-F62XZWUW.js → chunk-RZJXTSVA.js} +2 -2
- package/dist/command-completion-delivery.d.ts +130 -0
- package/dist/gmail-rest-mcp.js +3 -3
- package/dist/google-calendar-rest-mcp.js +2 -2
- package/dist/index.d.ts +8 -0
- package/dist/index.js +20 -8
- package/dist/interaction-tools.d.ts +9 -0
- package/dist/lazy-tool-transport.d.ts +2 -0
- package/dist/metrics.d.ts +9 -0
- package/dist/model-call.js +1 -1
- package/dist/provider-history-adapter.d.ts +6 -0
- package/dist/provider-invalid-request.d.ts +16 -0
- package/dist/provider-tool-names.d.ts +54 -0
- package/dist/sandbox/index.js +2 -2
- package/dist/sandbox/providers/modal-command-router-wire.d.ts +2 -0
- package/dist/slack-rest-mcp.js +3 -3
- package/dist/workspace-tool-gateway.js +8 -8
- package/package.json +16 -17
- package/src/agent-instructions/PROMPT_CHANGELOG.md +75 -3
- package/src/agent-instructions/modules/subagents.ts +43 -30
- package/src/agent-instructions/runtime-mechanics.ts +20 -2
- package/src/agent-instructions/tool-availability.ts +23 -2
- package/src/agent-instructions/types.ts +16 -2
- package/src/anthropic-messages.ts +4 -1
- package/src/command-completion-delivery.ts +388 -0
- package/src/index.ts +47 -7
- package/src/interaction-tools.ts +19 -2
- package/src/lazy-tool-transport.ts +48 -2
- package/src/metrics.ts +5 -0
- package/src/model-provider-client.ts +20 -0
- package/src/model-provider-routing.ts +2 -0
- package/src/provider-history-adapter.ts +23 -2
- package/src/provider-invalid-request.ts +77 -0
- package/src/provider-tool-names.ts +340 -0
- package/src/sandbox/providers/modal-command-control.ts +2 -1
- package/src/sandbox/providers/modal-command-router-wire.ts +3 -1
- package/src/sandbox/providers/modal-command-session.ts +54 -11
- package/dist/chunk-AE7DWNDQ.js.map +0 -1
- package/dist/chunk-GRNURW7Y.js.map +0 -1
- package/dist/chunk-HYSMFK7K.js.map +0 -1
- package/dist/chunk-PZPM6Z62.js.map +0 -1
- /package/dist/{chunk-RYNEQOTX.js.map → chunk-GFAFQMZV.js.map} +0 -0
- /package/dist/{chunk-ZNFEE7S5.js.map → chunk-JF5UTPEU.js.map} +0 -0
- /package/dist/{chunk-XXCIHKHP.js.map → chunk-OAW6MMSY.js.map} +0 -0
- /package/dist/{chunk-F62XZWUW.js.map → chunk-RZJXTSVA.js.map} +0 -0
|
@@ -2,6 +2,9 @@ import { type AgentPromptModule } from "../types.js";
|
|
|
2
2
|
/**
|
|
3
3
|
* Session tools: reading history, managing sessions, delegating to children,
|
|
4
4
|
* and joining them. A clause naming a session tool renders unless the attempt
|
|
5
|
-
* proved that tool absent
|
|
5
|
+
* proved that tool absent. Delegation judgment renders while `session_create`
|
|
6
|
+
* may exist. Child integration rules (joining results, answering a child's
|
|
7
|
+
* question) render unless the session can never have children (at its maximum
|
|
8
|
+
* nesting depth): a turn without `session_create` may still own children.
|
|
6
9
|
*/
|
|
7
10
|
export declare const subagentsModule: AgentPromptModule;
|
|
@@ -12,6 +12,17 @@ export type AgentPromptToolAvailabilityInput = {
|
|
|
12
12
|
* default ceiling, exactly as the delegated token is signed.
|
|
13
13
|
*/
|
|
14
14
|
firstPartyPermissions?: readonly Permission[] | null | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* The session's nested-agent depth and its frozen maximum. When both are
|
|
17
|
+
* known and the depth is exhausted, the first-party MCP server never
|
|
18
|
+
* registers `session_create` (apps/api/src/mcp/server.ts
|
|
19
|
+
* `sessionCreateVisible`, the same comparison), so it is proven absent here
|
|
20
|
+
* too, and since admission never placed a child below this session, it can
|
|
21
|
+
* have no children (`childSessionsImpossible`). Either value missing keeps
|
|
22
|
+
* `session_create` as the selection and ceiling decide.
|
|
23
|
+
*/
|
|
24
|
+
nestedAgentDepth?: number | undefined;
|
|
25
|
+
effectiveMaxNestedAgentDepth?: number | undefined;
|
|
15
26
|
};
|
|
16
27
|
/**
|
|
17
28
|
* Derives the frozen clause-availability view for one attempt. A first-party
|
|
@@ -24,5 +35,6 @@ export type AgentPromptToolAvailabilityInput = {
|
|
|
24
35
|
* search, external MCP catalogs and runtime adapters are never inspected, so
|
|
25
36
|
* their guidance always stays. The result is sorted and depends only on its
|
|
26
37
|
* inputs, so an unchanged selection renders an unchanged instruction prefix.
|
|
38
|
+
* Nesting depth is frozen on the session, so it keeps the prefix stable too.
|
|
27
39
|
*/
|
|
28
40
|
export declare function deriveAgentPromptToolAvailability(input: AgentPromptToolAvailabilityInput): AgentPromptToolAvailability;
|
|
@@ -57,6 +57,12 @@ export type AgentPromptResources = {
|
|
|
57
57
|
* Gates personal-identity guidance; omitted keeps prompts unchanged.
|
|
58
58
|
*/
|
|
59
59
|
personalGitHub?: boolean | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* Finished background commands report themselves with their output (with a
|
|
62
|
+
* later tool result, or as input). Gates the "do not poll" sentence; omitted
|
|
63
|
+
* keeps prompts unchanged.
|
|
64
|
+
*/
|
|
65
|
+
commandCompletionDelivery?: boolean | undefined;
|
|
60
66
|
workspaceEnvironment?: WorkspaceEnvironmentContext | undefined;
|
|
61
67
|
rig?: RigInstructionsContext | undefined;
|
|
62
68
|
/**
|
|
@@ -87,13 +93,21 @@ export type AgentPromptExperiments = {
|
|
|
87
93
|
* Which tool-specific instruction clauses may render for one attempt. A
|
|
88
94
|
* rendering input only: it never grants, withholds, defers or reorders a tool.
|
|
89
95
|
*
|
|
90
|
-
* `unavailable` lists
|
|
91
|
-
* `deriveAgentPromptToolAvailability`)
|
|
96
|
+
* `unavailable` lists tool names proven absent for the attempt (see
|
|
97
|
+
* `deriveAgentPromptToolAvailability`), plus save-only tools whose writes the
|
|
98
|
+
* turn's frozen learning policy refuses. Every other name — deferred or lazily
|
|
92
99
|
* disclosed, external MCP, provider-hosted, local adapter, or unknown — counts
|
|
93
100
|
* as available, so its guidance stays.
|
|
94
101
|
*/
|
|
95
102
|
export type AgentPromptToolAvailability = {
|
|
96
103
|
readonly unavailable: readonly FirstPartyMcpToolName[];
|
|
104
|
+
/**
|
|
105
|
+
* The session can never have child sessions: its nesting depth, frozen at
|
|
106
|
+
* create, has reached its frozen maximum, so no child was or will be
|
|
107
|
+
* admitted. Omitted when that is not proven (for example `session_create`
|
|
108
|
+
* merely unselected on a turn of a session that may already have children).
|
|
109
|
+
*/
|
|
110
|
+
readonly childSessionsImpossible?: true;
|
|
97
111
|
};
|
|
98
112
|
/** False only when the attempt proved the named tool absent. */
|
|
99
113
|
export declare function toolAvailable(context: AgentPromptContext, name: FirstPartyMcpToolName): boolean;
|