@triplef/agent 0.1.1 → 0.1.2

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.
@@ -1,5 +1,5 @@
1
- import { T as TemplateName, F as FormatZodShapeOptions } from '../intent.schema-BFsi1OVf.js';
2
- export { D as DEFAULT_VARIANT_ID } from '../intent.schema-BFsi1OVf.js';
1
+ import { T as TemplateName, F as FormatZodShapeOptions } from '../intent.schema-BbIiFHUW.js';
2
+ export { D as DEFAULT_VARIANT_ID } from '../intent.schema-BbIiFHUW.js';
3
3
  import * as zod from 'zod';
4
4
  import { z, ZodTypeAny, ZodType } from 'zod';
5
5
  import * as zod_v4_core from 'zod/v4/core';
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- export { D as DEFAULT_VARIANT_ID, F as FormatZodShapeOptions, I as IntentResult, a as IntentSchema, T as TemplateName, f as formatZodShape } from '../intent.schema-BFsi1OVf.js';
2
+ export { D as DEFAULT_VARIANT_ID, F as FormatZodShapeOptions, I as IntentResult, a as IntentSchema, T as TemplateName, f as formatZodShape } from '../intent.schema-BbIiFHUW.js';
3
3
 
4
4
  declare const BLOCKED_IMAGE_HOSTS: Set<string>;
5
5
 
@@ -154,6 +154,7 @@ interface LexiconSelectInput {
154
154
  query: string;
155
155
  documents: LexiconSourceDocument[];
156
156
  budgetChars?: number;
157
+ partitionScope?: string;
157
158
  }
158
159
  interface LexiconSelectResult {
159
160
  chunks: LexiconSelectedChunk[];
@@ -161,6 +162,9 @@ interface LexiconSelectResult {
161
162
  selectedChunks: number;
162
163
  droppedByThreshold: number;
163
164
  inputChunksDropped: number;
165
+ pastChunks?: LexiconSelectedChunk[];
166
+ reusedDocs?: number;
167
+ storedDocs?: number;
164
168
  }
165
169
 
166
170
  declare const ConsolidationVerdictSchema: z.ZodObject<{
@@ -84,12 +84,6 @@ interface MarketDailyBar {
84
84
  interface ToolDependencies {
85
85
  getLiveConfig: () => ToolConfigSnapshot;
86
86
  logger: ToolLogger;
87
- compactContent: (content: string, opts?: {
88
- model?: string;
89
- notify?: (event: string, data?: unknown) => void;
90
- }) => Promise<{
91
- text: string;
92
- }>;
93
87
  model?: string;
94
88
  notify?: (event: string, data?: unknown) => void;
95
89
  getOrFetchHistory?: (ticker: string, from: string, to: string) => Promise<MarketDailyBar[]>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@triplef/agent",
3
3
  "description": "tripleF (3F) agent domain — structured-output schemas, prompt builders, and model tools shared across the apps.",
4
- "version": "0.1.1",
4
+ "version": "0.1.2",
5
5
  "packageManager": "pnpm@11.24.0",
6
6
  "license": "MIT",
7
7
  "type": "module",
@@ -10,6 +10,7 @@ declare const TEMPLATES: readonly ["article", "news", "describe", "compare", "oc
10
10
  type TemplateName = (typeof TEMPLATES)[number];
11
11
  declare const IntentSchema: z.ZodObject<{
12
12
  template: z.ZodEnum<{
13
+ text: "text";
13
14
  article: "article";
14
15
  news: "news";
15
16
  describe: "describe";
@@ -24,7 +25,6 @@ declare const IntentSchema: z.ZodObject<{
24
25
  stockmarketitem: "stockmarketitem";
25
26
  stockmarketlist: "stockmarketlist";
26
27
  merge: "merge";
27
- text: "text";
28
28
  }>;
29
29
  prompt: z.ZodDefault<z.ZodString>;
30
30
  tools: z.ZodArray<z.ZodEnum<{