@triplef/agent 0.1.28 → 1.0.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/README.md CHANGED
@@ -12,6 +12,73 @@ The tripleF (3F) agent domain — structured-output schemas, prompt builders, an
12
12
  <br>
13
13
 
14
14
  <!-- DEPBADGE:START -->
15
+ <div align="center">
16
+
17
+ # StatusBadges
18
+
19
+ ![github](https://img.shields.io/github/release/ehildt/tripleF?labelColor=333&style=for-the-badge&cacheSeconds=3600&color=b16425&logo=github&logoColor=b16425&logoWidth=40&branch=main)
20
+ ![github](https://img.shields.io/github/stars/ehildt/tripleF?labelColor=333&style=for-the-badge&cacheSeconds=3600&color=b16425&logo=github&logoColor=b16425&logoWidth=40&branch=main)
21
+ ![github](https://img.shields.io/github/license/ehildt/tripleF?labelColor=333&style=for-the-badge&cacheSeconds=3600&color=b16425&logo=github&logoColor=b16425&logoWidth=40&branch=main)
22
+
23
+ </div>
24
+
25
+ <br>
26
+
27
+ <div align="center">
28
+
29
+ # Dependencies
30
+
31
+ [![@mozilla/readability](https://img.shields.io/badge/_mozilla_readability-v0.6.0-bd28bb.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=bd28bb&logoWidth=40&style=for-the-badge)](https://github.com/mozilla/readability)
32
+ [![@triplef/helpers](https://img.shields.io/badge/_triplef_helpers-v1.5.6-1bda2e.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=1bda2e&logoWidth=40&style=for-the-badge)](https://github.com/ehildt/tripleF)
33
+ [![linkedom](https://img.shields.io/badge/linkedom-v0.18.13-9c23be.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=9c23be&logoWidth=40&style=for-the-badge)](https://github.com/WebReflection/linkedom)
34
+ [![turndown](https://img.shields.io/badge/turndown-v7.2.4-ad7b1f.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=ad7b1f&logoWidth=40&style=for-the-badge)](https://github.com/mixmark-io/turndown)
35
+
36
+ </div>
37
+
38
+ <br>
39
+
40
+ <div align="center">
41
+
42
+ # DevDependencies
43
+
44
+ ![@changesets/cli](https://img.shields.io/badge/_changesets_cli-v3.0.2-82ba21.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=82ba21&logoWidth=40&style=flat-square)
45
+ ![@eslint/js](https://img.shields.io/badge/_eslint_js-v10.0.1-7a23a9.svg?labelColor=333&cacheSeconds=3600&logo=eslint&logoColor=7a23a9&logoWidth=40&style=flat-square)
46
+ ![@types/eslint](https://img.shields.io/badge/_types_eslint-v9.6.1-d936d0.svg?labelColor=333&cacheSeconds=3600&logo=eslint&logoColor=d936d0&logoWidth=40&style=flat-square)
47
+ ![@types/node](https://img.shields.io/badge/_types_node-v26.4.1-d51a33.svg?labelColor=333&cacheSeconds=3600&logo=node&logoColor=d51a33&logoWidth=40&style=flat-square)
48
+ ![@types/turndown](https://img.shields.io/badge/_types_turndown-v5.0.6-1ac76d.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=1ac76d&logoWidth=40&style=flat-square)
49
+ ![@vitest/coverage-v8](https://img.shields.io/badge/_vitest_coverage_v8-4.1.11-92d435.svg?labelColor=333&cacheSeconds=3600&logo=vitest&logoColor=92d435&logoWidth=40&style=flat-square)
50
+ ![depcheck](https://img.shields.io/badge/depcheck-v1.4.7-28a95e.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=28a95e&logoWidth=40&style=flat-square)
51
+ ![dependency-cruiser](https://img.shields.io/badge/dependency_cruiser-v18.2.0-c22431.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=c22431&logoWidth=40&style=flat-square)
52
+ ![eslint](https://img.shields.io/badge/eslint-v10.10.0-3f2ab7.svg?labelColor=333&cacheSeconds=3600&logo=eslint&logoColor=3f2ab7&logoWidth=40&style=flat-square)
53
+ ![eslint-config-prettier](https://img.shields.io/badge/eslint_config_prettier-v10.1.8-c4921c.svg?labelColor=333&cacheSeconds=3600&logo=prettier&logoColor=c4921c&logoWidth=40&style=flat-square)
54
+ ![eslint-plugin-prettier](https://img.shields.io/badge/eslint_plugin_prettier-v5.5.6-d19d2e.svg?labelColor=333&cacheSeconds=3600&logo=prettier&logoColor=d19d2e&logoWidth=40&style=flat-square)
55
+ ![eslint-plugin-simple-import-sort](https://img.shields.io/badge/eslint_plugin_simple_import_sort-v14.0.0-39d025.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=39d025&logoWidth=40&style=flat-square)
56
+ ![eslint-plugin-sonarjs](https://img.shields.io/badge/eslint_plugin_sonarjs-v4.2.0-ca216a.svg?labelColor=333&cacheSeconds=3600&logo=sonar&logoColor=ca216a&logoWidth=40&style=flat-square)
57
+ ![globals](https://img.shields.io/badge/globals-v17.12.0-2570b1.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=2570b1&logoWidth=40&style=flat-square)
58
+ ![husky](https://img.shields.io/badge/husky-v9.1.7-2e81b8.svg?labelColor=333&cacheSeconds=3600&logo=husky&logoColor=2e81b8&logoWidth=40&style=flat-square)
59
+ ![jiti](https://img.shields.io/badge/jiti-v2.7.0-2ab746.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=2ab746&logoWidth=40&style=flat-square)
60
+ ![lint-staged](https://img.shields.io/badge/lint_staged-v17.5.0-dfba26.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=dfba26&logoWidth=40&style=flat-square)
61
+ ![npm-check-updates](https://img.shields.io/badge/npm_check_updates-v23.1.0-1ec23c.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=1ec23c&logoWidth=40&style=flat-square)
62
+ ![prettier](https://img.shields.io/badge/prettier-v3.9.6-48bd28.svg?labelColor=333&cacheSeconds=3600&logo=prettier&logoColor=48bd28&logoWidth=40&style=flat-square)
63
+ ![rimraf](https://img.shields.io/badge/rimraf-v6.1.3-24a85b.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=24a85b&logoWidth=40&style=flat-square)
64
+ ![ts-unused-exports](https://img.shields.io/badge/ts_unused_exports-v11.0.1-5e26c0.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=5e26c0&logoWidth=40&style=flat-square)
65
+ ![tsup](https://img.shields.io/badge/tsup-v8.5.1-472cce.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=472cce&logoWidth=40&style=flat-square)
66
+ ![typescript](https://img.shields.io/badge/typescript-v5.9.3-4c2eb8.svg?labelColor=333&cacheSeconds=3600&logo=typescript&logoColor=4c2eb8&logoWidth=40&style=flat-square)
67
+ ![typescript-eslint](https://img.shields.io/badge/typescript_eslint-v8.69.0-dc2e59.svg?labelColor=333&cacheSeconds=3600&logo=eslint&logoColor=dc2e59&logoWidth=40&style=flat-square)
68
+ ![vitest](https://img.shields.io/badge/vitest-v4.1.11-80c026.svg?labelColor=333&cacheSeconds=3600&logo=vitest&logoColor=80c026&logoWidth=40&style=flat-square)
69
+
70
+ </div>
71
+
72
+ <br>
73
+
74
+ <div align="center">
75
+
76
+ # PeerDependencies
77
+
78
+ [![ai](https://img.shields.io/badge/ai-v7.0.93-1d30af.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=1d30af&logoWidth=40&style=flat)](https://github.com/vercel/ai)
79
+ [![zod](https://img.shields.io/badge/zod-v4.5.4-1eabb3.svg?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=1eabb3&logoWidth=40&style=flat)](https://github.com/colinhacks/zod)
80
+
81
+ </div>
15
82
  <!-- DEPBADGE:END -->
16
83
 
17
84
  ## Subpath exports
@@ -197,7 +197,7 @@ declare function buildConsolidatePrompt(params: {
197
197
  candidates: ConsolidateProvenanceLine[];
198
198
  }): string;
199
199
 
200
- declare function buildEnrichPrompt(): string;
200
+ declare function buildEnrichPrompt(knownTags?: readonly string[]): string;
201
201
 
202
202
  declare const MEMORY_PROFILE_INSTRUCTIONS: string;
203
203
  declare function buildMemoryProfilePrompt(params: {
@@ -3292,7 +3292,8 @@ var MemoryEnrichmentSchema = z.object({
3292
3292
  });
3293
3293
 
3294
3294
  // src/prompts/memory/memory-enrich-prompt.constant.ts
3295
- function buildEnrichPrompt() {
3295
+ function buildEnrichPrompt(knownTags = []) {
3296
+ const vocabularySection = buildVocabularySection({ tags: knownTags });
3296
3297
  return buildStructuredPrompt(MemoryEnrichmentSchema, {
3297
3298
  before: "OUTPUT FORMAT \u2014 output ONLY valid JSON matching this exact schema:",
3298
3299
  after: `
@@ -3300,7 +3301,9 @@ YOUR TASK \u2014 refine the topic labels of ONE stored memory record:
3300
3301
  - Keep the existing tags that are still accurate and reusable.
3301
3302
  - Add any missing stable, lowercase topic labels that would help a future topic-filtered recall find this record.
3302
3303
  - 2 to 6 tags total, lowercase, reusable, deduplicated.
3303
- - Tags are labels only \u2014 never rewrite or summarize the record text itself.
3304
+ - Tags are labels only \u2014 never rewrite or summarize the record text itself.${vocabularySection ? `
3305
+
3306
+ ${vocabularySection}` : ""}
3304
3307
 
3305
3308
  RULES:
3306
3309
  - Return ONLY a single valid JSON object matching the exact schema above.
package/package.json CHANGED
@@ -1,8 +1,8 @@
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.28",
5
- "packageManager": "pnpm@11.25.0",
4
+ "version": "1.0.1",
5
+ "packageManager": "pnpm@11.26.0",
6
6
  "license": "MIT",
7
7
  "type": "module",
8
8
  "exports": {
@@ -72,7 +72,7 @@
72
72
  "@changesets/cli": "^3.0.2",
73
73
  "@eslint/js": "^10.0.1",
74
74
  "@types/eslint": "^9.6.1",
75
- "@types/node": "^26.4.1",
75
+ "@types/node": "^26.5.0",
76
76
  "@types/turndown": "^5.0.6",
77
77
  "@vitest/coverage-v8": "4.1.11",
78
78
  "depcheck": "^1.4.7",
@@ -92,7 +92,7 @@
92
92
  "ts-unused-exports": "^11.0.1",
93
93
  "tsup": "^8.5.1",
94
94
  "typescript": "^5.9.3",
95
- "typescript-eslint": "^8.69.0",
95
+ "typescript-eslint": "^8.70.0",
96
96
  "vitest": "^4.1.11"
97
97
  }
98
98
  }