@linnlabs/linnkit 0.8.0 → 0.10.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/CHANGELOG.md +31 -0
- package/README.md +1 -1
- package/README.zh-CN.md +1 -1
- package/bin/linnkit.cjs +7 -0
- package/dist/{agentSpec-EkmviZjy.d.cts → agentSpec-Du4Iye0q.d.cts} +16 -1
- package/dist/{agentSpec-EkmviZjy.d.ts → agentSpec-Du4Iye0q.d.ts} +16 -1
- package/dist/cli.cjs +234 -91
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +234 -91
- package/dist/cli.js.map +1 -1
- package/dist/context-manager.cjs +230 -32
- package/dist/context-manager.cjs.map +1 -1
- package/dist/context-manager.d.cts +52 -15
- package/dist/context-manager.d.ts +52 -15
- package/dist/context-manager.js +230 -33
- package/dist/context-manager.js.map +1 -1
- package/dist/{context-trace-HE2qY5Q-.d.cts → context-trace-BHKDS-eq.d.cts} +2 -2
- package/dist/{context-trace-DRi5M4lX.d.ts → context-trace-CHbqHmyE.d.ts} +2 -2
- package/dist/contracts.cjs +3 -1
- package/dist/contracts.cjs.map +1 -1
- package/dist/contracts.d.cts +3 -3
- package/dist/contracts.d.ts +3 -3
- package/dist/contracts.js +3 -1
- package/dist/contracts.js.map +1 -1
- package/dist/{defaultGraphExecutor-BBswR8wn.d.ts → defaultGraphExecutor-B29_qTHy.d.ts} +16 -15
- package/dist/{defaultGraphExecutor-BIjJj7WF.d.cts → defaultGraphExecutor-C2E59v_R.d.cts} +16 -15
- package/dist/{index-Cm-JbzTH.d.cts → index-BAaUP9yU.d.cts} +38 -15
- package/dist/{index-DRBWi1fy.d.ts → index-BaVpVNi2.d.ts} +38 -15
- package/dist/{index-DO4dQgf2.d.cts → index-BnYCS8Zg.d.cts} +2 -2
- package/dist/{index-CJeWHopy.d.ts → index-C0DAjsdX.d.ts} +2 -2
- package/dist/{index-Dl5PLgAv.d.cts → index-CKQzzZ5Y.d.cts} +2 -2
- package/dist/{index-CHqwkvGp.d.ts → index-D0mKxTR5.d.ts} +2 -2
- package/dist/index.cjs +327 -110
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -10
- package/dist/index.d.ts +10 -10
- package/dist/index.js +327 -110
- package/dist/index.js.map +1 -1
- package/dist/{ports-DnLuKfpE.d.ts → ports-DpPTFhSd.d.ts} +2 -2
- package/dist/{ports-DaatKJXp.d.cts → ports-s-tSp3sB.d.cts} +2 -2
- package/dist/quickstart.cjs +232 -88
- package/dist/quickstart.cjs.map +1 -1
- package/dist/quickstart.d.cts +7 -7
- package/dist/quickstart.d.ts +7 -7
- package/dist/quickstart.js +232 -88
- package/dist/quickstart.js.map +1 -1
- package/dist/{runAgent-CPj_9e58.d.ts → runAgent-C6F-399C.d.ts} +5 -5
- package/dist/{runAgent-HYKlXbVr.d.cts → runAgent-ilEj66Ik.d.cts} +5 -5
- package/dist/{runHandle-D3gPsD7B.d.cts → runHandle-BNOqS-Bl.d.cts} +3 -3
- package/dist/{runHandle-CyXvzgzk.d.ts → runHandle-BdLXOFqF.d.ts} +3 -3
- package/dist/runtime-kernel/events.cjs +1 -0
- package/dist/runtime-kernel/events.cjs.map +1 -1
- package/dist/runtime-kernel/events.d.cts +4 -4
- package/dist/runtime-kernel/events.d.ts +4 -4
- package/dist/runtime-kernel/events.js +1 -0
- package/dist/runtime-kernel/events.js.map +1 -1
- package/dist/runtime-kernel.cjs +318 -103
- package/dist/runtime-kernel.cjs.map +1 -1
- package/dist/runtime-kernel.d.cts +8 -8
- package/dist/runtime-kernel.d.ts +8 -8
- package/dist/runtime-kernel.js +315 -104
- package/dist/runtime-kernel.js.map +1 -1
- package/dist/testkit.cjs +331 -116
- package/dist/testkit.cjs.map +1 -1
- package/dist/testkit.d.cts +8 -8
- package/dist/testkit.d.ts +8 -8
- package/dist/testkit.js +331 -116
- package/dist/testkit.js.map +1 -1
- package/dist/{todo-B1PmDlp3.d.cts → todo-Ca8llpRQ.d.cts} +1 -1
- package/dist/{todo-B1PmDlp3.d.ts → todo-Ca8llpRQ.d.ts} +1 -1
- package/dist/{toolContracts-CLkQmhTG.d.cts → toolContracts-Bm3EZ1UM.d.cts} +13 -2
- package/dist/{toolContracts-Blll0241.d.ts → toolContracts-f8lzZBNa.d.ts} +13 -2
- package/docs/integration/README.md +1 -1
- package/docs/integration/agent-registration-guide.md +1 -1
- package/docs/integration/child-runs.md +4 -1
- package/docs/integration/context-engineering.md +30 -15
- package/docs/integration/context-fences.md +32 -3
- package/docs/integration/llm-provider.md +1 -1
- package/docs/integration/persistence.md +1 -0
- package/docs/integration/run-supervisor.md +3 -0
- package/docs/integration/tool-development-guide.md +7 -5
- package/docs/integration/tool-history.md +43 -17
- package/package.json +5 -4
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { A as AgentAiEngine } from './audit-CtcfART1.js';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { B as BaseTool,
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import { h as AgentSpecContextPolicyInput, f as AgentSpec } from './agentSpec-Du4Iye0q.js';
|
|
3
|
+
import { R as RuntimeEvent } from './todo-Ca8llpRQ.js';
|
|
4
|
+
import { B as BaseTool, T as ToolArgs, O as OpenAIToolSchema, a as ToolExecutionContext } from './toolContracts-f8lzZBNa.js';
|
|
5
|
+
import { T as ToolRuntimeDefinition, a as ToolExecutionResult } from './ports-DpPTFhSd.js';
|
|
6
|
+
import { R as RunCost$1 } from './runHandle-BdLXOFqF.js';
|
|
7
7
|
|
|
8
8
|
interface DefinedAgent {
|
|
9
9
|
readonly spec: AgentSpec;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { A as AgentAiEngine } from './audit-LeOrm2hX.cjs';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { B as BaseTool,
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import { h as AgentSpecContextPolicyInput, f as AgentSpec } from './agentSpec-Du4Iye0q.cjs';
|
|
3
|
+
import { R as RuntimeEvent } from './todo-Ca8llpRQ.cjs';
|
|
4
|
+
import { B as BaseTool, T as ToolArgs, O as OpenAIToolSchema, a as ToolExecutionContext } from './toolContracts-Bm3EZ1UM.cjs';
|
|
5
|
+
import { T as ToolRuntimeDefinition, a as ToolExecutionResult } from './ports-s-tSp3sB.cjs';
|
|
6
|
+
import { R as RunCost$1 } from './runHandle-BNOqS-Bl.cjs';
|
|
7
7
|
|
|
8
8
|
interface DefinedAgent {
|
|
9
9
|
readonly spec: AgentSpec;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { f as AgentSpec } from './agentSpec-Du4Iye0q.cjs';
|
|
2
|
+
import { R as RuntimeEvent } from './todo-Ca8llpRQ.cjs';
|
|
3
3
|
import { b as AuditPort } from './audit-LeOrm2hX.cjs';
|
|
4
4
|
import { E as EventEnvelope } from './execution-CAIypb41.cjs';
|
|
5
5
|
|
|
@@ -236,4 +236,4 @@ declare class DefaultRunHandle<TRequest extends RunRequestSnapshot = RunRequestS
|
|
|
236
236
|
}
|
|
237
237
|
declare function runMetaFromRecord(record: RunRecord): RunMeta;
|
|
238
238
|
|
|
239
|
-
export { type CancelOpts as C, DefaultRunHandle as D, type EventRangeOptions as E, type ListRunsFilter as L, type PersistedEvent as P, type
|
|
239
|
+
export { type CancelOpts as C, DefaultRunHandle as D, type EventRangeOptions as E, type ListRunsFilter as L, type PersistedEvent as P, type RunCost as R, type EventStore as a, EventBus as b, createMonotonicEventIdFactory as c, type DefaultRunHandleOptions as d, type RunAwaitingUserPatch as e, type RunCostCollector as f, type RunFailureInfo as g, type RunHandle as h, type RunLifecyclePatch as i, type RunMeta as j, type RunObserveFilter as k, type RunRecord as l, type RunRegistryStore as m, type RunRequestSnapshot as n, type RunStatus as o, runMetaFromRecord as r };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { f as AgentSpec } from './agentSpec-Du4Iye0q.js';
|
|
2
|
+
import { R as RuntimeEvent } from './todo-Ca8llpRQ.js';
|
|
3
3
|
import { b as AuditPort } from './audit-CtcfART1.js';
|
|
4
4
|
import { E as EventEnvelope } from './execution-CAIypb41.js';
|
|
5
5
|
|
|
@@ -236,4 +236,4 @@ declare class DefaultRunHandle<TRequest extends RunRequestSnapshot = RunRequestS
|
|
|
236
236
|
}
|
|
237
237
|
declare function runMetaFromRecord(record: RunRecord): RunMeta;
|
|
238
238
|
|
|
239
|
-
export { type CancelOpts as C, DefaultRunHandle as D, type EventRangeOptions as E, type ListRunsFilter as L, type PersistedEvent as P, type
|
|
239
|
+
export { type CancelOpts as C, DefaultRunHandle as D, type EventRangeOptions as E, type ListRunsFilter as L, type PersistedEvent as P, type RunCost as R, type EventStore as a, EventBus as b, createMonotonicEventIdFactory as c, type DefaultRunHandleOptions as d, type RunAwaitingUserPatch as e, type RunCostCollector as f, type RunFailureInfo as g, type RunHandle as h, type RunLifecyclePatch as i, type RunMeta as j, type RunObserveFilter as k, type RunRecord as l, type RunRegistryStore as m, type RunRequestSnapshot as n, type RunStatus as o, runMetaFromRecord as r };
|
|
@@ -182,6 +182,7 @@ var AgentSpecBudgetPolicy = zod.z.object({
|
|
|
182
182
|
});
|
|
183
183
|
var AgentSpecToolHistoryPolicy = zod.z.object({
|
|
184
184
|
strategy: zod.z.enum(["per-pair", "per-run", "none"]).optional(),
|
|
185
|
+
retentionMode: zod.z.enum(["drop", "compress"]).optional(),
|
|
185
186
|
keepLatestToolPairs: zod.z.number().int().nonnegative().optional(),
|
|
186
187
|
keepLatestRuns: zod.z.number().int().nonnegative().optional(),
|
|
187
188
|
maxInteractionGroups: zod.z.number().int().nonnegative().optional(),
|