@linnlabs/linnkit 0.31.0 → 0.31.1
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/CHANGELOG.md +6 -0
- package/dist/cli.cjs +27 -1
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +27 -1
- package/dist/cli.js.map +1 -1
- package/dist/context-manager.cjs +29 -0
- package/dist/context-manager.cjs.map +1 -1
- package/dist/context-manager.js +29 -0
- package/dist/context-manager.js.map +1 -1
- package/dist/index.cjs +27 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +27 -1
- package/dist/index.js.map +1 -1
- package/dist/quickstart.cjs +27 -1
- package/dist/quickstart.cjs.map +1 -1
- package/dist/quickstart.js +27 -1
- package/dist/quickstart.js.map +1 -1
- package/dist/runtime-kernel.cjs +27 -1
- package/dist/runtime-kernel.cjs.map +1 -1
- package/dist/runtime-kernel.js +27 -1
- package/dist/runtime-kernel.js.map +1 -1
- package/dist/testkit.cjs +27 -1
- package/dist/testkit.cjs.map +1 -1
- package/dist/testkit.js +27 -1
- package/dist/testkit.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -14,6 +14,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
14
14
|
|
|
15
15
|
## [Unreleased]
|
|
16
16
|
|
|
17
|
+
## [0.31.1] - 2026-09-03
|
|
18
|
+
|
|
19
|
+
### Fixed
|
|
20
|
+
|
|
21
|
+
- Fixed `ToolContext` runtime capability identity across the package root, `runtime-kernel`, and `testkit` bundles. ESM and CommonJS consumers can now admit a context through one public entry and read or derive it through another without creating isolated hidden-binding registries.
|
|
22
|
+
|
|
17
23
|
## [0.31.0] - 2026-09-03
|
|
18
24
|
|
|
19
25
|
### Added
|
package/dist/cli.cjs
CHANGED
|
@@ -7634,7 +7634,33 @@ function findCachedToolOutputByIdempotencyKey(params) {
|
|
|
7634
7634
|
}
|
|
7635
7635
|
|
|
7636
7636
|
// src/runtime-kernel/tools/toolContextRuntime.ts
|
|
7637
|
-
var
|
|
7637
|
+
var TOOL_CONTEXT_RUNTIME_BINDINGS_KEY = /* @__PURE__ */ Symbol.for(
|
|
7638
|
+
"@linnlabs/linnkit/tool-context-runtime-bindings/v1"
|
|
7639
|
+
);
|
|
7640
|
+
function isRuntimeBindingRegistry(value) {
|
|
7641
|
+
return value instanceof WeakMap;
|
|
7642
|
+
}
|
|
7643
|
+
function resolveRuntimeBindingRegistry() {
|
|
7644
|
+
const existing = Reflect.get(globalThis, TOOL_CONTEXT_RUNTIME_BINDINGS_KEY);
|
|
7645
|
+
if (existing !== void 0) {
|
|
7646
|
+
if (!isRuntimeBindingRegistry(existing)) {
|
|
7647
|
+
throw new Error("Linnkit ToolContext runtime binding registry has an incompatible owner.");
|
|
7648
|
+
}
|
|
7649
|
+
return existing;
|
|
7650
|
+
}
|
|
7651
|
+
const registry = /* @__PURE__ */ new WeakMap();
|
|
7652
|
+
const installed = Reflect.defineProperty(globalThis, TOOL_CONTEXT_RUNTIME_BINDINGS_KEY, {
|
|
7653
|
+
value: registry,
|
|
7654
|
+
configurable: false,
|
|
7655
|
+
enumerable: false,
|
|
7656
|
+
writable: false
|
|
7657
|
+
});
|
|
7658
|
+
if (!installed) {
|
|
7659
|
+
throw new Error("Cannot install Linnkit ToolContext runtime binding registry.");
|
|
7660
|
+
}
|
|
7661
|
+
return registry;
|
|
7662
|
+
}
|
|
7663
|
+
var runtimeBindings = resolveRuntimeBindingRegistry();
|
|
7638
7664
|
function toEventSource(source) {
|
|
7639
7665
|
if (typeof source === "function") {
|
|
7640
7666
|
return source;
|