@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.
Files changed (83) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/README.md +1 -1
  3. package/README.zh-CN.md +1 -1
  4. package/bin/linnkit.cjs +7 -0
  5. package/dist/{agentSpec-EkmviZjy.d.cts → agentSpec-Du4Iye0q.d.cts} +16 -1
  6. package/dist/{agentSpec-EkmviZjy.d.ts → agentSpec-Du4Iye0q.d.ts} +16 -1
  7. package/dist/cli.cjs +234 -91
  8. package/dist/cli.cjs.map +1 -1
  9. package/dist/cli.js +234 -91
  10. package/dist/cli.js.map +1 -1
  11. package/dist/context-manager.cjs +230 -32
  12. package/dist/context-manager.cjs.map +1 -1
  13. package/dist/context-manager.d.cts +52 -15
  14. package/dist/context-manager.d.ts +52 -15
  15. package/dist/context-manager.js +230 -33
  16. package/dist/context-manager.js.map +1 -1
  17. package/dist/{context-trace-HE2qY5Q-.d.cts → context-trace-BHKDS-eq.d.cts} +2 -2
  18. package/dist/{context-trace-DRi5M4lX.d.ts → context-trace-CHbqHmyE.d.ts} +2 -2
  19. package/dist/contracts.cjs +3 -1
  20. package/dist/contracts.cjs.map +1 -1
  21. package/dist/contracts.d.cts +3 -3
  22. package/dist/contracts.d.ts +3 -3
  23. package/dist/contracts.js +3 -1
  24. package/dist/contracts.js.map +1 -1
  25. package/dist/{defaultGraphExecutor-BBswR8wn.d.ts → defaultGraphExecutor-B29_qTHy.d.ts} +16 -15
  26. package/dist/{defaultGraphExecutor-BIjJj7WF.d.cts → defaultGraphExecutor-C2E59v_R.d.cts} +16 -15
  27. package/dist/{index-Cm-JbzTH.d.cts → index-BAaUP9yU.d.cts} +38 -15
  28. package/dist/{index-DRBWi1fy.d.ts → index-BaVpVNi2.d.ts} +38 -15
  29. package/dist/{index-DO4dQgf2.d.cts → index-BnYCS8Zg.d.cts} +2 -2
  30. package/dist/{index-CJeWHopy.d.ts → index-C0DAjsdX.d.ts} +2 -2
  31. package/dist/{index-Dl5PLgAv.d.cts → index-CKQzzZ5Y.d.cts} +2 -2
  32. package/dist/{index-CHqwkvGp.d.ts → index-D0mKxTR5.d.ts} +2 -2
  33. package/dist/index.cjs +327 -110
  34. package/dist/index.cjs.map +1 -1
  35. package/dist/index.d.cts +10 -10
  36. package/dist/index.d.ts +10 -10
  37. package/dist/index.js +327 -110
  38. package/dist/index.js.map +1 -1
  39. package/dist/{ports-DnLuKfpE.d.ts → ports-DpPTFhSd.d.ts} +2 -2
  40. package/dist/{ports-DaatKJXp.d.cts → ports-s-tSp3sB.d.cts} +2 -2
  41. package/dist/quickstart.cjs +232 -88
  42. package/dist/quickstart.cjs.map +1 -1
  43. package/dist/quickstart.d.cts +7 -7
  44. package/dist/quickstart.d.ts +7 -7
  45. package/dist/quickstart.js +232 -88
  46. package/dist/quickstart.js.map +1 -1
  47. package/dist/{runAgent-CPj_9e58.d.ts → runAgent-C6F-399C.d.ts} +5 -5
  48. package/dist/{runAgent-HYKlXbVr.d.cts → runAgent-ilEj66Ik.d.cts} +5 -5
  49. package/dist/{runHandle-D3gPsD7B.d.cts → runHandle-BNOqS-Bl.d.cts} +3 -3
  50. package/dist/{runHandle-CyXvzgzk.d.ts → runHandle-BdLXOFqF.d.ts} +3 -3
  51. package/dist/runtime-kernel/events.cjs +1 -0
  52. package/dist/runtime-kernel/events.cjs.map +1 -1
  53. package/dist/runtime-kernel/events.d.cts +4 -4
  54. package/dist/runtime-kernel/events.d.ts +4 -4
  55. package/dist/runtime-kernel/events.js +1 -0
  56. package/dist/runtime-kernel/events.js.map +1 -1
  57. package/dist/runtime-kernel.cjs +318 -103
  58. package/dist/runtime-kernel.cjs.map +1 -1
  59. package/dist/runtime-kernel.d.cts +8 -8
  60. package/dist/runtime-kernel.d.ts +8 -8
  61. package/dist/runtime-kernel.js +315 -104
  62. package/dist/runtime-kernel.js.map +1 -1
  63. package/dist/testkit.cjs +331 -116
  64. package/dist/testkit.cjs.map +1 -1
  65. package/dist/testkit.d.cts +8 -8
  66. package/dist/testkit.d.ts +8 -8
  67. package/dist/testkit.js +331 -116
  68. package/dist/testkit.js.map +1 -1
  69. package/dist/{todo-B1PmDlp3.d.cts → todo-Ca8llpRQ.d.cts} +1 -1
  70. package/dist/{todo-B1PmDlp3.d.ts → todo-Ca8llpRQ.d.ts} +1 -1
  71. package/dist/{toolContracts-CLkQmhTG.d.cts → toolContracts-Bm3EZ1UM.d.cts} +13 -2
  72. package/dist/{toolContracts-Blll0241.d.ts → toolContracts-f8lzZBNa.d.ts} +13 -2
  73. package/docs/integration/README.md +1 -1
  74. package/docs/integration/agent-registration-guide.md +1 -1
  75. package/docs/integration/child-runs.md +4 -1
  76. package/docs/integration/context-engineering.md +30 -15
  77. package/docs/integration/context-fences.md +32 -3
  78. package/docs/integration/llm-provider.md +1 -1
  79. package/docs/integration/persistence.md +1 -0
  80. package/docs/integration/run-supervisor.md +3 -0
  81. package/docs/integration/tool-development-guide.md +7 -5
  82. package/docs/integration/tool-history.md +43 -17
  83. package/package.json +5 -4
@@ -1,9 +1,9 @@
1
1
  import { A as AgentAiEngine } from './audit-CtcfART1.js';
2
- import { f as AgentSpecContextPolicyInput, a as AgentSpec } from './agentSpec-EkmviZjy.js';
3
- import { e as RuntimeEvent } from './todo-B1PmDlp3.js';
4
- import { B as BaseTool, a as ToolArgs, O as OpenAIToolSchema, T as ToolExecutionContext } from './toolContracts-Blll0241.js';
5
- import { g as ToolRuntimeDefinition, f as ToolExecutionResult } from './ports-DnLuKfpE.js';
6
- import { e as RunCost$1 } from './runHandle-CyXvzgzk.js';
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 { f as AgentSpecContextPolicyInput, a as AgentSpec } from './agentSpec-EkmviZjy.cjs';
3
- import { e as RuntimeEvent } from './todo-B1PmDlp3.cjs';
4
- import { B as BaseTool, a as ToolArgs, O as OpenAIToolSchema, T as ToolExecutionContext } from './toolContracts-CLkQmhTG.cjs';
5
- import { g as ToolRuntimeDefinition, f as ToolExecutionResult } from './ports-DaatKJXp.cjs';
6
- import { e as RunCost$1 } from './runHandle-D3gPsD7B.cjs';
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 { a as AgentSpec } from './agentSpec-EkmviZjy.cjs';
2
- import { e as RuntimeEvent } from './todo-B1PmDlp3.cjs';
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 RunAwaitingUserPatch as R, type EventStore as a, EventBus as b, createMonotonicEventIdFactory as c, type DefaultRunHandleOptions as d, type RunCost 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 };
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 { a as AgentSpec } from './agentSpec-EkmviZjy.js';
2
- import { e as RuntimeEvent } from './todo-B1PmDlp3.js';
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 RunAwaitingUserPatch as R, type EventStore as a, EventBus as b, createMonotonicEventIdFactory as c, type DefaultRunHandleOptions as d, type RunCost 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 };
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(),