@yanlinglabs/winter-agent-runtime 0.0.27 → 0.0.28
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/README.md +4 -0
- package/dist/context/attachments.d.ts +37 -0
- package/dist/context/seam.d.ts +19 -1
- package/dist/embedded-host.d.ts +14 -0
- package/dist/embedded-host.js +11 -1
- package/dist/embedded-protocol.d.ts +17 -1
- package/dist/embedded-worker.js +20 -3
- package/dist/embedded.js +4 -3
- package/dist/engine.d.ts +23 -0
- package/dist/hooks/additional-context.d.ts +20 -0
- package/dist/hooks/async-hooks.d.ts +64 -0
- package/dist/hooks/command-invoker.d.ts +8 -1
- package/dist/hooks/registry.d.ts +6 -0
- package/dist/hooks/runner.d.ts +22 -0
- package/dist/index-8jgwp1px.js +533 -0
- package/dist/{index-rkhh0457.js → index-d255xsgm.js} +2 -2
- package/dist/{index-9qgkpv56.js → index-mftq279y.js} +604 -587
- package/dist/{index-584yahed.js → index-mqj4x0fn.js} +176 -107
- package/dist/index.js +2 -1
- package/dist/mcp/client.d.ts +16 -1
- package/dist/mcp/test-fixtures.d.ts +2 -0
- package/dist/mcp/transports/stdio.d.ts +19 -0
- package/dist/mcp-client.d.ts +28 -0
- package/dist/mcp-client.js +23 -0
- package/dist/permissions/paths.d.ts +5 -0
- package/dist/process-groups.d.ts +22 -0
- package/dist/provider/classifier/model-classifier.d.ts +12 -0
- package/dist/store/dialect.d.ts +1 -1
- package/dist/store/provider-state.d.ts +14 -1
- package/dist/subagents/child-handle.d.ts +8 -0
- package/dist/testing.js +3 -2
- package/dist/tools/registry.d.ts +6 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +8 -4
|
@@ -328,6 +328,14 @@ export interface ParentMcpState {
|
|
|
328
328
|
* `JP($n, Y2(yr.mcp.tools.concat(pn)))`, dump byte 18016381).
|
|
329
329
|
*/
|
|
330
330
|
visibleServerNames?: () => readonly string[];
|
|
331
|
+
/**
|
|
332
|
+
* WS-24 (fix round 3): the parent run's own `EngineOptions.mcpServerRenames` -- `{ actual: declared }`
|
|
333
|
+
* for every server in its scope that runs under a name other than the one it was declared with. A
|
|
334
|
+
* renamed server is in `visibleServerNames` above, so a descendant can call it; the descendant merges
|
|
335
|
+
* these into its own renames, so session rules and hooks written against the declared name keep
|
|
336
|
+
* governing it at every depth.
|
|
337
|
+
*/
|
|
338
|
+
serverRenames?: Readonly<Record<string, string>>;
|
|
331
339
|
}
|
|
332
340
|
export interface ParentRuleMirror {
|
|
333
341
|
allow: string[];
|
package/dist/testing.js
CHANGED
|
@@ -3,7 +3,8 @@ import {
|
|
|
3
3
|
runEngine2,
|
|
4
4
|
echoProvider2,
|
|
5
5
|
resolveEngineSession2
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-mftq279y.js";
|
|
7
|
+
import"./index-8jgwp1px.js";
|
|
7
8
|
import"./index-bef62z3r.js";
|
|
8
9
|
import {
|
|
9
10
|
registerDefaultChildEngineFactory,
|
|
@@ -11,7 +12,7 @@ import {
|
|
|
11
12
|
buildProductionWiring,
|
|
12
13
|
withAutoSkillPermissions,
|
|
13
14
|
restoreChildRoster
|
|
14
|
-
} from "./index-
|
|
15
|
+
} from "./index-mqj4x0fn.js";
|
|
15
16
|
import {
|
|
16
17
|
Queue
|
|
17
18
|
} from "./index-97t2rmtf.js";
|
package/dist/tools/registry.d.ts
CHANGED
|
@@ -297,6 +297,12 @@ export declare function registerMcpServerTools(server: string, incomingTools: re
|
|
|
297
297
|
* servers that run can see (engine.ts's `computeAdvertisedPartition`).
|
|
298
298
|
*/
|
|
299
299
|
export declare function mcpServerOwningTool(canonicalName: string): string | undefined;
|
|
300
|
+
/**
|
|
301
|
+
* WS-24: does a live MCP server currently hold registrations under `server`? A subagent's own
|
|
302
|
+
* object-form server must not take a name some other lifecycle in this process is registered under --
|
|
303
|
+
* see subagents/child-engine.ts's `allocateChildScopedServers`.
|
|
304
|
+
*/
|
|
305
|
+
export declare function mcpServerHasRegistrations(server: string): boolean;
|
|
300
306
|
export declare function unregisterMcpServerTools(server: string): void;
|
|
301
307
|
export interface LoadedToolSet {
|
|
302
308
|
isLoaded(name: string): boolean;
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const RUNTIME_VERSION = "0.0.
|
|
1
|
+
export declare const RUNTIME_VERSION = "0.0.28";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yanlinglabs/winter-agent-runtime",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.28",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -45,6 +45,10 @@
|
|
|
45
45
|
"./version": {
|
|
46
46
|
"types": "./dist/version.d.ts",
|
|
47
47
|
"default": "./dist/version.js"
|
|
48
|
+
},
|
|
49
|
+
"./mcp-client": {
|
|
50
|
+
"types": "./dist/mcp-client.d.ts",
|
|
51
|
+
"default": "./dist/mcp-client.js"
|
|
48
52
|
}
|
|
49
53
|
},
|
|
50
54
|
"files": [
|
|
@@ -65,9 +69,9 @@
|
|
|
65
69
|
"@modelcontextprotocol/client": "^2.1.0",
|
|
66
70
|
"ajv": "^8.20.0",
|
|
67
71
|
"ignore": "7.0.5",
|
|
68
|
-
"@yanlinglabs/winter-
|
|
69
|
-
"@yanlinglabs/winter-
|
|
70
|
-
"@yanlinglabs/winter-provider-catalog": "0.0.
|
|
72
|
+
"@yanlinglabs/winter-agent-sdk": "0.0.28",
|
|
73
|
+
"@yanlinglabs/winter-provider-runtime": "0.0.28",
|
|
74
|
+
"@yanlinglabs/winter-provider-catalog": "0.0.28"
|
|
71
75
|
},
|
|
72
76
|
"devDependencies": {
|
|
73
77
|
"@modelcontextprotocol/server": "^2.1.0"
|