@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.
@@ -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-9qgkpv56.js";
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-584yahed.js";
15
+ } from "./index-mqj4x0fn.js";
15
16
  import {
16
17
  Queue
17
18
  } from "./index-97t2rmtf.js";
@@ -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.27";
1
+ export declare const RUNTIME_VERSION = "0.0.28";
package/dist/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // src/version.ts
2
- var RUNTIME_VERSION = "0.0.27";
2
+ var RUNTIME_VERSION = "0.0.28";
3
3
  export {
4
4
  RUNTIME_VERSION
5
5
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yanlinglabs/winter-agent-runtime",
3
- "version": "0.0.27",
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-provider-runtime": "0.0.27",
69
- "@yanlinglabs/winter-agent-sdk": "0.0.27",
70
- "@yanlinglabs/winter-provider-catalog": "0.0.27"
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"