@triplef/agent 0.1.13 → 0.1.15
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/dist/prompts/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TemplateName, F as FormatZodShapeOptions } from '../intent.schema-
|
|
2
|
-
export { D as DEFAULT_VARIANT_ID } from '../intent.schema-
|
|
1
|
+
import { T as TemplateName, F as FormatZodShapeOptions } from '../intent.schema-DnxaUhmz.js';
|
|
2
|
+
export { D as DEFAULT_VARIANT_ID } from '../intent.schema-DnxaUhmz.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';
|
|
@@ -93,6 +93,15 @@ declare function buildConsolidatePrompt(params: {
|
|
|
93
93
|
candidates: ConsolidateProvenanceLine[];
|
|
94
94
|
}): string;
|
|
95
95
|
|
|
96
|
+
declare const MEMORY_CLUSTER_INSTRUCTIONS: string;
|
|
97
|
+
declare function buildClusterSummaryPrompt(params: {
|
|
98
|
+
category?: string;
|
|
99
|
+
members: Array<{
|
|
100
|
+
text: string;
|
|
101
|
+
}>;
|
|
102
|
+
maxPayloadChars?: number;
|
|
103
|
+
}): string;
|
|
104
|
+
|
|
96
105
|
declare function buildEnrichPrompt(): string;
|
|
97
106
|
|
|
98
107
|
declare const MEMORY_PROFILE_INSTRUCTIONS: string;
|
|
@@ -104,6 +113,9 @@ declare function buildMemoryProfilePrompt(params: {
|
|
|
104
113
|
text: string;
|
|
105
114
|
path?: string;
|
|
106
115
|
}>;
|
|
116
|
+
convictions?: Array<{
|
|
117
|
+
text: string;
|
|
118
|
+
}>;
|
|
107
119
|
priorFacts?: Array<{
|
|
108
120
|
text: string;
|
|
109
121
|
}>;
|
|
@@ -287,4 +299,4 @@ declare const verdictSpineSnippet: TemplateSnippet;
|
|
|
287
299
|
|
|
288
300
|
declare const videoGallerySnippet: TemplateSnippet;
|
|
289
301
|
|
|
290
|
-
export { COMMONMARK_FORMAT, COMPARE_INSTRUCTIONS, COMPARE_VISUAL_INSTRUCTIONS, type ContentSystemPromptParams, DESCRIBE_CONCISE_INSTRUCTIONS, DESCRIBE_DETAILED_INSTRUCTIONS, DESCRIBE_INSTRUCTIONS, FINAL_REMINDER, HISTORY_URLS_RULES, IMAGELIST_INSTRUCTIONS, IMAGE_TASK_RULE, INTERNATIONAL_COVERAGE_INSTRUCTIONS, ITEM_SHAPES, JSON_RULES, MEDIA_COUNTS, MEDIA_RULES, MEMORY_CONSOLIDATE_INSTRUCTIONS, MEMORY_PROFILE_INSTRUCTIONS, MEMORY_WRITE_INSTRUCTIONS, MERGE_MEDIA_RULES, MERGE_TOPIC_RULE, MULTIMODAL_POLICY, NOISE_RULES, OCR_INSTRUCTIONS, OCR_VERBATIM_INSTRUCTIONS, PRECEDENCE_RULES, PRODUCT_INSTRUCTIONS, RESPONSE_LAYOUTS, type ResponseLayout, SECURITY_RULES, SHOPLIST_INSTRUCTIONS, SNIPPET_TEMPLATE_PRESETS, SOURCE_TRUTH_RULES, SOURCE_VOICE_RULES, STOCKMARKET_ITEM_INSTRUCTIONS, STOCKMARKET_LIST_INSTRUCTIONS, SUMMARY_INSTRUCTIONS, type SnippetTemplatePreset, type SourcePolicyConfig, type StructuredPromptTemplate, TEMPLATE_VARIANTS, TEXT_CODING_INSTRUCTIONS, TEXT_FAMILIARITY_INSTRUCTIONS, TEXT_INSTRUCTIONS, TOOL_RESULTS_RULES, type TemplateSnippet, VIDEOLIST_INSTRUCTIONS, articlePreset, assessmentListsSnippet, authorMetaSnippet, bodyBriefSnippet, bodyExtensiveSnippet, buildBaseSystemPrompt, buildConsolidatePrompt, buildContentSystemPrompt, buildContextSummarySection, buildEnrichPrompt, buildExtractionCorrectionPrompt, buildExtractionPrompt, buildIntentCorrectionPrompt, buildIntentSelectionPrompt, buildLanguageRule, buildLayoutInstruction, buildLocalizationRule, buildMemoryProfilePrompt, buildMemoryWritePrompt, buildOutputContract, buildSnippetInstruction, buildSourcePolicyPrompt, buildStructuredJsonPrompt, buildStructuredPrompt, bylineDatelineSnippet, cardsSnippet, comparisonSchema, comparisonSnippet, composeSnippetKeys, composeSnippetSchema, conclusionSnippet, evaluationPreset, formatToolAvailabilityCatalog, formatToolCatalog, formatVariantCatalog, gallerySnippet, getSnippetTemplateKeys, getSnippetTemplateSchema, headerArticleSnippet, headerNewsSnippet, heroMediaSnippet, internationalCoverageSnippet, introductionSnippet, isSnippetTemplate, keyFindingsSnippet, languageCorrectionPrompt, leadSnippet, mergePreset, mergedEvaluationsSnippet, newsKeyFindingsSnippet, newsPreset, quoteSnippet, reasoningSnippet, relatedStoriesSnippet, resolveLanguageName, resolveVariantInstructions, responseLayoutSchema, sourcesSnippet, subjectSchema, subjectsSnippet, summarySnippet, verdictSpineSnippet, videoGallerySnippet };
|
|
302
|
+
export { COMMONMARK_FORMAT, COMPARE_INSTRUCTIONS, COMPARE_VISUAL_INSTRUCTIONS, type ContentSystemPromptParams, DESCRIBE_CONCISE_INSTRUCTIONS, DESCRIBE_DETAILED_INSTRUCTIONS, DESCRIBE_INSTRUCTIONS, FINAL_REMINDER, HISTORY_URLS_RULES, IMAGELIST_INSTRUCTIONS, IMAGE_TASK_RULE, INTERNATIONAL_COVERAGE_INSTRUCTIONS, ITEM_SHAPES, JSON_RULES, MEDIA_COUNTS, MEDIA_RULES, MEMORY_CLUSTER_INSTRUCTIONS, MEMORY_CONSOLIDATE_INSTRUCTIONS, MEMORY_PROFILE_INSTRUCTIONS, MEMORY_WRITE_INSTRUCTIONS, MERGE_MEDIA_RULES, MERGE_TOPIC_RULE, MULTIMODAL_POLICY, NOISE_RULES, OCR_INSTRUCTIONS, OCR_VERBATIM_INSTRUCTIONS, PRECEDENCE_RULES, PRODUCT_INSTRUCTIONS, RESPONSE_LAYOUTS, type ResponseLayout, SECURITY_RULES, SHOPLIST_INSTRUCTIONS, SNIPPET_TEMPLATE_PRESETS, SOURCE_TRUTH_RULES, SOURCE_VOICE_RULES, STOCKMARKET_ITEM_INSTRUCTIONS, STOCKMARKET_LIST_INSTRUCTIONS, SUMMARY_INSTRUCTIONS, type SnippetTemplatePreset, type SourcePolicyConfig, type StructuredPromptTemplate, TEMPLATE_VARIANTS, TEXT_CODING_INSTRUCTIONS, TEXT_FAMILIARITY_INSTRUCTIONS, TEXT_INSTRUCTIONS, TOOL_RESULTS_RULES, type TemplateSnippet, VIDEOLIST_INSTRUCTIONS, articlePreset, assessmentListsSnippet, authorMetaSnippet, bodyBriefSnippet, bodyExtensiveSnippet, buildBaseSystemPrompt, buildClusterSummaryPrompt, buildConsolidatePrompt, buildContentSystemPrompt, buildContextSummarySection, buildEnrichPrompt, buildExtractionCorrectionPrompt, buildExtractionPrompt, buildIntentCorrectionPrompt, buildIntentSelectionPrompt, buildLanguageRule, buildLayoutInstruction, buildLocalizationRule, buildMemoryProfilePrompt, buildMemoryWritePrompt, buildOutputContract, buildSnippetInstruction, buildSourcePolicyPrompt, buildStructuredJsonPrompt, buildStructuredPrompt, bylineDatelineSnippet, cardsSnippet, comparisonSchema, comparisonSnippet, composeSnippetKeys, composeSnippetSchema, conclusionSnippet, evaluationPreset, formatToolAvailabilityCatalog, formatToolCatalog, formatVariantCatalog, gallerySnippet, getSnippetTemplateKeys, getSnippetTemplateSchema, headerArticleSnippet, headerNewsSnippet, heroMediaSnippet, internationalCoverageSnippet, introductionSnippet, isSnippetTemplate, keyFindingsSnippet, languageCorrectionPrompt, leadSnippet, mergePreset, mergedEvaluationsSnippet, newsKeyFindingsSnippet, newsPreset, quoteSnippet, reasoningSnippet, relatedStoriesSnippet, resolveLanguageName, resolveVariantInstructions, responseLayoutSchema, sourcesSnippet, subjectSchema, subjectsSnippet, summarySnippet, verdictSpineSnippet, videoGallerySnippet };
|
package/dist/prompts/index.mjs
CHANGED
|
@@ -628,6 +628,14 @@ var ConsolidationVerdictSchema = z.object({
|
|
|
628
628
|
),
|
|
629
629
|
mergedText: z.string().optional().describe("Required with verdict=merge: one fuller self-contained statement (full restatement, never a diff).")
|
|
630
630
|
});
|
|
631
|
+
var MemoryClusterSummarySchema = z.object({
|
|
632
|
+
title: z.string().describe(
|
|
633
|
+
'A short noun-phrase label for the cluster (2\u20136 words), e.g. "gaming preferences" or "work projects".'
|
|
634
|
+
),
|
|
635
|
+
summary: z.string().describe(
|
|
636
|
+
"One or two sentences summarizing what this cluster of memories is about \u2014 the shared theme, the key facts, and how they relate."
|
|
637
|
+
)
|
|
638
|
+
});
|
|
631
639
|
var MemoryEnrichmentSchema = z.object({
|
|
632
640
|
/**
|
|
633
641
|
* 2–6 stable, reusable lowercase topic labels for the record — the existing
|
|
@@ -684,6 +692,13 @@ var memoryCognitionProfileSchema = z.object({
|
|
|
684
692
|
dislikes: nullishTopics,
|
|
685
693
|
/** Topics the user keeps returning to. */
|
|
686
694
|
interests: nullishTopics,
|
|
695
|
+
/**
|
|
696
|
+
* Durable CONVICTIONS the AI synthesized about the user's world — the
|
|
697
|
+
* routing-map topics of its conviction records (depth lives in the
|
|
698
|
+
* conviction points at paths `convictions.<slug>`). Convictions are the
|
|
699
|
+
* AI's own derived conclusions, never statements the user made.
|
|
700
|
+
*/
|
|
701
|
+
convictions: nullishTopics,
|
|
687
702
|
/** The AI's own identity as the user has shaped it (name, role, voice). */
|
|
688
703
|
persona: z.object({
|
|
689
704
|
/** The name the user gave the AI. */
|
|
@@ -3063,6 +3078,34 @@ ${candidates}`,
|
|
|
3063
3078
|
"Decide exactly one verdict (keep / redundant / merge) and output ONLY the JSON object."
|
|
3064
3079
|
].join("\n\n");
|
|
3065
3080
|
}
|
|
3081
|
+
var MEMORY_CLUSTER_INSTRUCTIONS = buildStructuredPrompt(
|
|
3082
|
+
MemoryClusterSummarySchema,
|
|
3083
|
+
{
|
|
3084
|
+
before: `MEMORY CLUSTER SUMMARY \u2014 one purpose: write a short title + summary for ONE cluster of related memory records, so the cluster can be recalled as a whole without reading every member.
|
|
3085
|
+
|
|
3086
|
+
You receive:
|
|
3087
|
+
- CATEGORY: the broad family label these records were filed under (may be absent).
|
|
3088
|
+
- MEMBERS: the records in this cluster (each a single stored fact/statement).
|
|
3089
|
+
|
|
3090
|
+
Rules:
|
|
3091
|
+
- The title is a short noun phrase (2\u20136 words) naming the cluster's shared theme \u2014 never a sentence, never a person's name alone.
|
|
3092
|
+
- The summary is one or two sentences: what this cluster is about, the key facts it holds, and how they relate. Plain prose, third person, no markdown.
|
|
3093
|
+
- Evidence only: summarize ONLY what the members state \u2014 never invent facts, never add outside knowledge, never editorialize.
|
|
3094
|
+
- Never store secrets, credentials, or sensitive data.
|
|
3095
|
+
|
|
3096
|
+
OUTPUT FORMAT \u2014 output ONLY valid JSON:`,
|
|
3097
|
+
after: "No markdown fences, no explanations."
|
|
3098
|
+
}
|
|
3099
|
+
);
|
|
3100
|
+
function buildClusterSummaryPrompt(params) {
|
|
3101
|
+
const members = params.members.map((member) => `- ${member.text}`).join("\n");
|
|
3102
|
+
return [
|
|
3103
|
+
`CATEGORY: ${params.category?.trim() || "(none)"}`,
|
|
3104
|
+
`MEMBERS:
|
|
3105
|
+
${limitText(members, params.maxPayloadChars)}`,
|
|
3106
|
+
"Write the title + summary JSON object now."
|
|
3107
|
+
].join("\n\n");
|
|
3108
|
+
}
|
|
3066
3109
|
|
|
3067
3110
|
// src/prompts/memory/memory-enrich-prompt.constant.ts
|
|
3068
3111
|
function buildEnrichPrompt() {
|
|
@@ -3088,7 +3131,7 @@ var MEMORY_PROFILE_INSTRUCTIONS = buildStructuredPrompt(memoryProfileResponseSch
|
|
|
3088
3131
|
before: `COGNITION JOB \u2014 maintain YOUR evolving understanding of THIS user.
|
|
3089
3132
|
|
|
3090
3133
|
You hold three kinds of cognition, all derived (never the fact store):
|
|
3091
|
-
1. PROFILE \u2014 a single structured JSON document: who the user is (stable identity and durable LEAN topics) PLUS your own persona (the name, role, and voice the user has given YOU) and your learned corrections (behavioral rules the user taught you after you got something wrong). You output a PATCH, never the whole document \u2014 your fields are MERGED into the stored profile in code: fields you OMIT are kept as stored, fields you set REPLACE the stored value, and a field set to null REMOVES it from the profile ("likes": null deletes the whole list). Never repeat unchanged fields, and never null a field you merely do not know \u2014 null deletes. The user-side profile is a ROUTING MAP: its values are short topic strings ("cars", "Linux", "TypeScript") that double as probe triggers into your deeper insight memory \u2014 keep each value to a phrase, never a sentence; depth does not belong here. The persona and corrections are about YOU, not the user \u2014 never confuse the two.
|
|
3134
|
+
1. PROFILE \u2014 a single structured JSON document: who the user is (stable identity and durable LEAN topics) PLUS your own persona (the name, role, and voice the user has given YOU) and your learned corrections (behavioral rules the user taught you after you got something wrong) and your CONVICTIONS (short topics of durable conclusions you synthesized about the user's world \u2014 the routing-map side of your conviction records, whose depth lives at paths "convictions.<slug>"). You output a PATCH, never the whole document \u2014 your fields are MERGED into the stored profile in code: fields you OMIT are kept as stored, fields you set REPLACE the stored value, and a field set to null REMOVES it from the profile ("likes": null deletes the whole list). Never repeat unchanged fields, and never null a field you merely do not know \u2014 null deletes. The user-side profile is a ROUTING MAP: its values are short topic strings ("cars", "Linux", "TypeScript") that double as probe triggers into your deeper insight memory \u2014 keep each value to a phrase, never a sentence; depth does not belong here. The persona and corrections are about YOU, not the user \u2014 never confuse the two. Convictions sit between: they are YOUR synthesized conclusions about the user's world, recorded as short topics.
|
|
3092
3135
|
2. INSIGHTS \u2014 the DEPTH behind those topics: specific models they like, past statements, working nuances \u2014 recalled later by vector probe when that topic comes up. One self-contained sentence each, third person, lead with the topic. When an insight deepens a stored profile value, attach its "path" as "field.keyword" where the keyword names THAT value exactly \u2014 short, never a phrase (profile likes "anime" \u2192 "likes.anime"); genuinely general insights stay pathless.
|
|
3093
3136
|
3. EPISODE \u2014 a single sentence recording what THIS turn was about (the interaction arc: what the user asked, what you did, what was decided or left open). Short-term conversation memory, recalled later by a recency-blended probe when a new turn touches the same topic or the user asks about recent activity. One sentence, past tense, lead with the action ("Helped the user debug the memory app's probe"). Omit when the turn was trivial (greetings, one-word answers, no substance) or when the turn is about memory itself: a recap request ("where did we leave off?", "do you remember what we did?", "what have we been working on?") and its answer only REPEAT earlier turns \u2014 they add no activity of their own, and echoing them as an episode would crowd out the real recent activity the next time the user asks. Exception: when the user CORRECTS your recap ("no, we were listening to music"), record the correction's substance \u2014 what the recent activity actually was \u2014 never the mistaken recap.
|
|
3094
3137
|
|
|
@@ -3097,6 +3140,7 @@ You receive:
|
|
|
3097
3140
|
- ASSISTANT RESPONSE: what you answered (prose only).
|
|
3098
3141
|
- CURRENT PROFILE: your document so far (may be empty).
|
|
3099
3142
|
- DERIVED INSIGHTS: your deeper memory of this user, already stored (may be absent).
|
|
3143
|
+
- DERIVED CONVICTIONS: your synthesized conclusions, already stored (may be absent).
|
|
3100
3144
|
- PRIOR FACTS: this user's OWN stored statements from past conversations, probed by this turn's topic (may be absent).
|
|
3101
3145
|
|
|
3102
3146
|
Rules:
|
|
@@ -3108,6 +3152,7 @@ Rules:
|
|
|
3108
3152
|
- Third person ("The user \u2026"), compact values, no markdown.
|
|
3109
3153
|
- Never store secrets, credentials, or sensitive data the user did not explicitly ask to be remembered.
|
|
3110
3154
|
- DERIVED INSIGHTS are your already-stored depth. When one holds a durable trait that belongs in the routing map (a language, a standing interest, a skill, a preference), promote it into the profile as a SHORT topic string \u2014 never copy insight sentences into the profile; depth stays in the insights.
|
|
3155
|
+
- DERIVED CONVICTIONS are your already-stored synthesized conclusions. When one names a durable conclusion the routing map should carry, promote it into the "convictions" list as a SHORT topic phrase \u2014 the conviction record keeps the full sentence and its evidence; never record a conviction as something the user stated.
|
|
3111
3156
|
- Connect, never collapse: PRIOR FACTS may echo or complete what this turn reveals. When a new detail plausibly connects to a prior fact (the user disliked the dog food they bought AND you know they own a dog), you MAY record the CONNECTION as a derived insight \u2014 hedged, third person, plainly tentative ("\u2026 \u2014 possibly because the dog refuses it"). Never merge two facts into one claim the user never made, never store the connection as a stated fact, and never let a connection invent or replace a profile value.
|
|
3112
3157
|
- The MERGED profile (the stored document with your patch applied) must stay under the stated character cap \u2014 when headroom shrinks, reclaim space by removing the least-durable fields (set them to null) instead of piling on.
|
|
3113
3158
|
- Null means the user explicitly no longer holds that trait ("likes": null after they said they stopped liking X) \u2014 never null a field you merely do not know, and never answer with an all-nulls profile: deleting EVERYTHING you know is always a mistake on a normal turn.
|
|
@@ -3115,7 +3160,7 @@ Rules:
|
|
|
3115
3160
|
|
|
3116
3161
|
Respond with EXACTLY one JSON object, nothing else:`,
|
|
3117
3162
|
after: `- profile: ONLY the fields you are adding, refining, or removing (removal = a null value), or null when nothing durable changed.
|
|
3118
|
-
- Arrays (expertise, goals, likes, dislikes, interests): when you change one, re-emit its COMPLETE new contents \u2014 a partial array REPLACES the stored list and drops whatever you omitted.
|
|
3163
|
+
- Arrays (expertise, goals, likes, dislikes, interests, convictions): when you change one, re-emit its COMPLETE new contents \u2014 a partial array REPLACES the stored list and drops whatever you omitted.
|
|
3119
3164
|
- persona (and its nested voice) and corrections are deep-merged like communication/preferences: emit only the sub-fields/keys you are changing; omitted ones survive. To remove a correction, set its key to null.
|
|
3120
3165
|
- insights: only NEW durable depth (omit when none); "path" is optional and only when the insight deepens a profile value.
|
|
3121
3166
|
- episode: one sentence on what this turn was about (omit when trivial or when the turn only recaps past activity).`
|
|
@@ -3133,6 +3178,13 @@ function buildMemoryProfilePrompt(params) {
|
|
|
3133
3178
|
${limitText(insights, params.maxPayloadChars)}`
|
|
3134
3179
|
);
|
|
3135
3180
|
}
|
|
3181
|
+
const convictions = params.convictions?.map((conviction) => `- ${conviction.text}`).join("\n");
|
|
3182
|
+
if (convictions) {
|
|
3183
|
+
parts.push(
|
|
3184
|
+
`DERIVED CONVICTIONS (your synthesized conclusions \u2014 promote durable topics from here into the profile convictions facet):
|
|
3185
|
+
${limitText(convictions, params.maxPayloadChars)}`
|
|
3186
|
+
);
|
|
3187
|
+
}
|
|
3136
3188
|
const priorFacts = params.priorFacts?.map((fact) => `- ${fact.text}`).join("\n");
|
|
3137
3189
|
if (priorFacts) {
|
|
3138
3190
|
parts.push(
|
|
@@ -3290,4 +3342,4 @@ Compose the response from the snippets below. Include every snippet you can subs
|
|
|
3290
3342
|
${parts.join("\n\n")}`;
|
|
3291
3343
|
}
|
|
3292
3344
|
|
|
3293
|
-
export { COMMONMARK_FORMAT, COMPARE_INSTRUCTIONS, COMPARE_VISUAL_INSTRUCTIONS, DEFAULT_VARIANT_ID, DESCRIBE_CONCISE_INSTRUCTIONS, DESCRIBE_DETAILED_INSTRUCTIONS, DESCRIBE_INSTRUCTIONS, FINAL_REMINDER, HISTORY_URLS_RULES, IMAGELIST_INSTRUCTIONS, IMAGE_TASK_RULE, INTERNATIONAL_COVERAGE_INSTRUCTIONS, ITEM_SHAPES, JSON_RULES, MEDIA_COUNTS, MEDIA_RULES, MEMORY_CONSOLIDATE_INSTRUCTIONS, MEMORY_PROFILE_INSTRUCTIONS, MEMORY_WRITE_INSTRUCTIONS, MERGE_MEDIA_RULES, MERGE_TOPIC_RULE, MULTIMODAL_POLICY, NOISE_RULES, OCR_INSTRUCTIONS, OCR_VERBATIM_INSTRUCTIONS, PRECEDENCE_RULES, PRODUCT_INSTRUCTIONS, RESPONSE_LAYOUTS, SECURITY_RULES, SHOPLIST_INSTRUCTIONS, SNIPPET_TEMPLATE_PRESETS, SOURCE_TRUTH_RULES, SOURCE_VOICE_RULES, STOCKMARKET_ITEM_INSTRUCTIONS, STOCKMARKET_LIST_INSTRUCTIONS, SUMMARY_INSTRUCTIONS, TEMPLATE_VARIANTS, TEXT_CODING_INSTRUCTIONS, TEXT_FAMILIARITY_INSTRUCTIONS, TEXT_INSTRUCTIONS, TOOL_RESULTS_RULES, VIDEOLIST_INSTRUCTIONS, articlePreset, assessmentListsSnippet, authorMetaSnippet, bodyBriefSnippet, bodyExtensiveSnippet, buildBaseSystemPrompt, buildConsolidatePrompt, buildContentSystemPrompt, buildContextSummarySection, buildEnrichPrompt, buildExtractionCorrectionPrompt, buildExtractionPrompt, buildIntentCorrectionPrompt, buildIntentSelectionPrompt, buildLanguageRule, buildLayoutInstruction, buildLocalizationRule, buildMemoryProfilePrompt, buildMemoryWritePrompt, buildOutputContract, buildSnippetInstruction, buildSourcePolicyPrompt, buildStructuredJsonPrompt, buildStructuredPrompt, bylineDatelineSnippet, cardsSnippet, comparisonSchema, comparisonSnippet, composeSnippetKeys, composeSnippetSchema, conclusionSnippet, evaluationPreset, formatToolAvailabilityCatalog, formatToolCatalog, formatVariantCatalog, gallerySnippet, getSnippetTemplateKeys, getSnippetTemplateSchema, headerArticleSnippet, headerNewsSnippet, heroMediaSnippet, internationalCoverageSnippet, introductionSnippet, isSnippetTemplate, keyFindingsSnippet, languageCorrectionPrompt, leadSnippet, mergePreset, mergedEvaluationsSnippet, newsKeyFindingsSnippet, newsPreset, quoteSnippet, reasoningSnippet, relatedStoriesSnippet, resolveLanguageName, resolveVariantInstructions, responseLayoutSchema, sourcesSnippet, subjectSchema, subjectsSnippet, summarySnippet, verdictSpineSnippet, videoGallerySnippet };
|
|
3345
|
+
export { COMMONMARK_FORMAT, COMPARE_INSTRUCTIONS, COMPARE_VISUAL_INSTRUCTIONS, DEFAULT_VARIANT_ID, DESCRIBE_CONCISE_INSTRUCTIONS, DESCRIBE_DETAILED_INSTRUCTIONS, DESCRIBE_INSTRUCTIONS, FINAL_REMINDER, HISTORY_URLS_RULES, IMAGELIST_INSTRUCTIONS, IMAGE_TASK_RULE, INTERNATIONAL_COVERAGE_INSTRUCTIONS, ITEM_SHAPES, JSON_RULES, MEDIA_COUNTS, MEDIA_RULES, MEMORY_CLUSTER_INSTRUCTIONS, MEMORY_CONSOLIDATE_INSTRUCTIONS, MEMORY_PROFILE_INSTRUCTIONS, MEMORY_WRITE_INSTRUCTIONS, MERGE_MEDIA_RULES, MERGE_TOPIC_RULE, MULTIMODAL_POLICY, NOISE_RULES, OCR_INSTRUCTIONS, OCR_VERBATIM_INSTRUCTIONS, PRECEDENCE_RULES, PRODUCT_INSTRUCTIONS, RESPONSE_LAYOUTS, SECURITY_RULES, SHOPLIST_INSTRUCTIONS, SNIPPET_TEMPLATE_PRESETS, SOURCE_TRUTH_RULES, SOURCE_VOICE_RULES, STOCKMARKET_ITEM_INSTRUCTIONS, STOCKMARKET_LIST_INSTRUCTIONS, SUMMARY_INSTRUCTIONS, TEMPLATE_VARIANTS, TEXT_CODING_INSTRUCTIONS, TEXT_FAMILIARITY_INSTRUCTIONS, TEXT_INSTRUCTIONS, TOOL_RESULTS_RULES, VIDEOLIST_INSTRUCTIONS, articlePreset, assessmentListsSnippet, authorMetaSnippet, bodyBriefSnippet, bodyExtensiveSnippet, buildBaseSystemPrompt, buildClusterSummaryPrompt, buildConsolidatePrompt, buildContentSystemPrompt, buildContextSummarySection, buildEnrichPrompt, buildExtractionCorrectionPrompt, buildExtractionPrompt, buildIntentCorrectionPrompt, buildIntentSelectionPrompt, buildLanguageRule, buildLayoutInstruction, buildLocalizationRule, buildMemoryProfilePrompt, buildMemoryWritePrompt, buildOutputContract, buildSnippetInstruction, buildSourcePolicyPrompt, buildStructuredJsonPrompt, buildStructuredPrompt, bylineDatelineSnippet, cardsSnippet, comparisonSchema, comparisonSnippet, composeSnippetKeys, composeSnippetSchema, conclusionSnippet, evaluationPreset, formatToolAvailabilityCatalog, formatToolCatalog, formatVariantCatalog, gallerySnippet, getSnippetTemplateKeys, getSnippetTemplateSchema, headerArticleSnippet, headerNewsSnippet, heroMediaSnippet, internationalCoverageSnippet, introductionSnippet, isSnippetTemplate, keyFindingsSnippet, languageCorrectionPrompt, leadSnippet, mergePreset, mergedEvaluationsSnippet, newsKeyFindingsSnippet, newsPreset, quoteSnippet, reasoningSnippet, relatedStoriesSnippet, resolveLanguageName, resolveVariantInstructions, responseLayoutSchema, sourcesSnippet, subjectSchema, subjectsSnippet, summarySnippet, verdictSpineSnippet, videoGallerySnippet };
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -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-
|
|
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-DnxaUhmz.js';
|
|
3
3
|
|
|
4
4
|
declare const BLOCKED_IMAGE_HOSTS: Set<string>;
|
|
5
5
|
|
|
@@ -185,6 +185,12 @@ declare const ConsolidationVerdictSchema: z.ZodObject<{
|
|
|
185
185
|
}, z.core.$strip>;
|
|
186
186
|
type ConsolidationVerdict = z.infer<typeof ConsolidationVerdictSchema>;
|
|
187
187
|
|
|
188
|
+
declare const MemoryClusterSummarySchema: z.ZodObject<{
|
|
189
|
+
title: z.ZodString;
|
|
190
|
+
summary: z.ZodString;
|
|
191
|
+
}, z.core.$strip>;
|
|
192
|
+
type MemoryClusterSummary = z.infer<typeof MemoryClusterSummarySchema>;
|
|
193
|
+
|
|
188
194
|
declare const MemoryEnrichmentSchema: z.ZodObject<{
|
|
189
195
|
tags: z.ZodArray<z.ZodString>;
|
|
190
196
|
}, z.core.$strip>;
|
|
@@ -212,6 +218,7 @@ declare const memoryCognitionProfileSchema: z.ZodObject<{
|
|
|
212
218
|
likes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
213
219
|
dislikes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
214
220
|
interests: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
221
|
+
convictions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
215
222
|
persona: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
216
223
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
217
224
|
role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -254,6 +261,7 @@ declare const memoryProfileResponseSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
254
261
|
likes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
255
262
|
dislikes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
256
263
|
interests: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
264
|
+
convictions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
257
265
|
persona: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
258
266
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
259
267
|
role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -275,10 +283,12 @@ declare const memoryProfileResponseSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
275
283
|
type MemoryProfileResponse = z.infer<typeof memoryProfileResponseSchema>;
|
|
276
284
|
declare const INSIGHT_TAGS: string[];
|
|
277
285
|
declare const EPISODE_TAGS: string[];
|
|
286
|
+
declare const CONVICTION_TAGS: string[];
|
|
278
287
|
declare const COGNITION_LIMIT_DEFAULT = 5000;
|
|
279
288
|
declare const COGNITION_LIMIT_MIN = 500;
|
|
280
289
|
declare const COGNITION_LIMIT_MAX = 32000;
|
|
281
290
|
declare const INSIGHT_TEXT_LIMIT = 500;
|
|
291
|
+
declare const CONVICTION_TEXT_LIMIT = 500;
|
|
282
292
|
declare const EPISODE_TEXT_LIMIT = 500;
|
|
283
293
|
declare const INSIGHTS_MAX_PER_TURN = 8;
|
|
284
294
|
declare const COGNITION_PURGE_BATCH = 500;
|
|
@@ -909,4 +919,4 @@ declare const videolistSchema: z.ZodObject<{
|
|
|
909
919
|
}, z.core.$strip>>>;
|
|
910
920
|
}, z.core.$strip>;
|
|
911
921
|
|
|
912
|
-
export { BLOCKED_IMAGE_HOSTS, BLOCKED_URL_HOSTS, BROWSER_TOOL_NAMES, COGNITION_LIMIT_DEFAULT, COGNITION_LIMIT_MAX, COGNITION_LIMIT_MIN, COGNITION_PURGE_BATCH, type ConsolidationVerdict, ConsolidationVerdictSchema, EPISODE_PROBE_LIMIT_DEFAULT, EPISODE_PROBE_LIMIT_MIN, EPISODE_RECENCY_MIDPOINT_DEFAULT, EPISODE_RECENCY_MIDPOINT_MAX, EPISODE_RECENCY_MIDPOINT_MIN, EPISODE_RECENCY_SCALE_SECONDS_DEFAULT, EPISODE_RECENCY_SCALE_SECONDS_MAX, EPISODE_RECENCY_SCALE_SECONDS_MIN, EPISODE_RECENCY_WEIGHT_DEFAULT, EPISODE_RECENCY_WEIGHT_MAX, EPISODE_RECENCY_WEIGHT_MIN, EPISODE_SCORE_THRESHOLD_DEFAULT, EPISODE_SCORE_THRESHOLD_MAX, EPISODE_SCORE_THRESHOLD_MIN, EPISODE_TAGS, EPISODE_TEXT_LIMIT, type EncyclopediaSearchResult, type EncyclopediaSelectInput, type EncyclopediaSelectResult, type EncyclopediaSelectedChunk, type EncyclopediaSourceDocument, ExtractionSchema, HERO_VIDEO_TITLE_ISSUE, INSIGHTS_MAX_PER_TURN, INSIGHT_TAGS, INSIGHT_TEXT_LIMIT, MEMORY_TOOL_NAMES, type MemoryCognitionProfile, type MemoryEnrichment, MemoryEnrichmentSchema, type MemoryExtraction, type MemoryProfileInsight, type MemoryProfileResponse, NON_PAGE_EXTENSIONS, type ProviderConfig, TOOL_DESCRIPTIONS, TOOL_NAMES, type ToolName, VARIANT_NAMES, type VariantName, cardSchema, categorizeTools, clampCognitionLimit, clampEpisodeProbeLimit, clampEpisodeRecencyMidpoint, clampEpisodeRecencyScaleSeconds, clampEpisodeRecencyWeight, clampEpisodeScoreThreshold, compareSchema, createTextItemSchema, deriveSchemaKeys, describeSchema, discardedReferenceSchema, formatZodIssues, galleryItemSchema, hasBlockedImageHost, heroVideoHasTitle, imagelistSchema, internationalCoverageSchema, isAllFieldsNullWipe, isPrivateOrLocalhost, isTrustedImageUrl, isTrustedUrl, markerSchema, memoryProfileResponseSchema, mergeCognitionProfiles, normalizeInsightPath, ocrSchema, parseStoredProfile, productSchema, referenceGalleryItemSchema, referenceLineSchema, relatedStorySchema, safeMediaUrl, safeMediaUrlOrEmpty, safeUrl, safeVideoUrl, safeVideoUrlOrEmpty, shoplistSchema, sourceSchema, stockmarketItemSchema, stockmarketListSchema, summarySchema, videoGalleryItemSchema, videolistSchema };
|
|
922
|
+
export { BLOCKED_IMAGE_HOSTS, BLOCKED_URL_HOSTS, BROWSER_TOOL_NAMES, COGNITION_LIMIT_DEFAULT, COGNITION_LIMIT_MAX, COGNITION_LIMIT_MIN, COGNITION_PURGE_BATCH, CONVICTION_TAGS, CONVICTION_TEXT_LIMIT, type ConsolidationVerdict, ConsolidationVerdictSchema, EPISODE_PROBE_LIMIT_DEFAULT, EPISODE_PROBE_LIMIT_MIN, EPISODE_RECENCY_MIDPOINT_DEFAULT, EPISODE_RECENCY_MIDPOINT_MAX, EPISODE_RECENCY_MIDPOINT_MIN, EPISODE_RECENCY_SCALE_SECONDS_DEFAULT, EPISODE_RECENCY_SCALE_SECONDS_MAX, EPISODE_RECENCY_SCALE_SECONDS_MIN, EPISODE_RECENCY_WEIGHT_DEFAULT, EPISODE_RECENCY_WEIGHT_MAX, EPISODE_RECENCY_WEIGHT_MIN, EPISODE_SCORE_THRESHOLD_DEFAULT, EPISODE_SCORE_THRESHOLD_MAX, EPISODE_SCORE_THRESHOLD_MIN, EPISODE_TAGS, EPISODE_TEXT_LIMIT, type EncyclopediaSearchResult, type EncyclopediaSelectInput, type EncyclopediaSelectResult, type EncyclopediaSelectedChunk, type EncyclopediaSourceDocument, ExtractionSchema, HERO_VIDEO_TITLE_ISSUE, INSIGHTS_MAX_PER_TURN, INSIGHT_TAGS, INSIGHT_TEXT_LIMIT, MEMORY_TOOL_NAMES, type MemoryClusterSummary, MemoryClusterSummarySchema, type MemoryCognitionProfile, type MemoryEnrichment, MemoryEnrichmentSchema, type MemoryExtraction, type MemoryProfileInsight, type MemoryProfileResponse, NON_PAGE_EXTENSIONS, type ProviderConfig, TOOL_DESCRIPTIONS, TOOL_NAMES, type ToolName, VARIANT_NAMES, type VariantName, cardSchema, categorizeTools, clampCognitionLimit, clampEpisodeProbeLimit, clampEpisodeRecencyMidpoint, clampEpisodeRecencyScaleSeconds, clampEpisodeRecencyWeight, clampEpisodeScoreThreshold, compareSchema, createTextItemSchema, deriveSchemaKeys, describeSchema, discardedReferenceSchema, formatZodIssues, galleryItemSchema, hasBlockedImageHost, heroVideoHasTitle, imagelistSchema, internationalCoverageSchema, isAllFieldsNullWipe, isPrivateOrLocalhost, isTrustedImageUrl, isTrustedUrl, markerSchema, memoryProfileResponseSchema, mergeCognitionProfiles, normalizeInsightPath, ocrSchema, parseStoredProfile, productSchema, referenceGalleryItemSchema, referenceLineSchema, relatedStorySchema, safeMediaUrl, safeMediaUrlOrEmpty, safeUrl, safeVideoUrl, safeVideoUrlOrEmpty, shoplistSchema, sourceSchema, stockmarketItemSchema, stockmarketListSchema, summarySchema, videoGalleryItemSchema, videolistSchema };
|
package/dist/schemas/index.mjs
CHANGED
|
@@ -474,6 +474,14 @@ var ConsolidationVerdictSchema = z.object({
|
|
|
474
474
|
),
|
|
475
475
|
mergedText: z.string().optional().describe("Required with verdict=merge: one fuller self-contained statement (full restatement, never a diff).")
|
|
476
476
|
});
|
|
477
|
+
var MemoryClusterSummarySchema = z.object({
|
|
478
|
+
title: z.string().describe(
|
|
479
|
+
'A short noun-phrase label for the cluster (2\u20136 words), e.g. "gaming preferences" or "work projects".'
|
|
480
|
+
),
|
|
481
|
+
summary: z.string().describe(
|
|
482
|
+
"One or two sentences summarizing what this cluster of memories is about \u2014 the shared theme, the key facts, and how they relate."
|
|
483
|
+
)
|
|
484
|
+
});
|
|
477
485
|
var MemoryEnrichmentSchema = z.object({
|
|
478
486
|
/**
|
|
479
487
|
* 2–6 stable, reusable lowercase topic labels for the record — the existing
|
|
@@ -530,6 +538,13 @@ var memoryCognitionProfileSchema = z.object({
|
|
|
530
538
|
dislikes: nullishTopics,
|
|
531
539
|
/** Topics the user keeps returning to. */
|
|
532
540
|
interests: nullishTopics,
|
|
541
|
+
/**
|
|
542
|
+
* Durable CONVICTIONS the AI synthesized about the user's world — the
|
|
543
|
+
* routing-map topics of its conviction records (depth lives in the
|
|
544
|
+
* conviction points at paths `convictions.<slug>`). Convictions are the
|
|
545
|
+
* AI's own derived conclusions, never statements the user made.
|
|
546
|
+
*/
|
|
547
|
+
convictions: nullishTopics,
|
|
533
548
|
/** The AI's own identity as the user has shaped it (name, role, voice). */
|
|
534
549
|
persona: z.object({
|
|
535
550
|
/** The name the user gave the AI. */
|
|
@@ -651,10 +666,12 @@ var memoryProfileResponseSchema = z.preprocess(
|
|
|
651
666
|
);
|
|
652
667
|
var INSIGHT_TAGS = ["cognition", "insight"];
|
|
653
668
|
var EPISODE_TAGS = ["cognition", "episode"];
|
|
669
|
+
var CONVICTION_TAGS = ["cognition", "conviction"];
|
|
654
670
|
var COGNITION_LIMIT_DEFAULT = 5e3;
|
|
655
671
|
var COGNITION_LIMIT_MIN = 500;
|
|
656
672
|
var COGNITION_LIMIT_MAX = 32e3;
|
|
657
673
|
var INSIGHT_TEXT_LIMIT = 500;
|
|
674
|
+
var CONVICTION_TEXT_LIMIT = 500;
|
|
658
675
|
var EPISODE_TEXT_LIMIT = 500;
|
|
659
676
|
var INSIGHTS_MAX_PER_TURN = 8;
|
|
660
677
|
var COGNITION_PURGE_BATCH = 500;
|
|
@@ -1076,4 +1093,4 @@ var videolistSchema = z.object({
|
|
|
1076
1093
|
internationalCoverage: internationalCoverageSchema.optional()
|
|
1077
1094
|
});
|
|
1078
1095
|
|
|
1079
|
-
export { BLOCKED_IMAGE_HOSTS, BLOCKED_URL_HOSTS, BROWSER_TOOL_NAMES, COGNITION_LIMIT_DEFAULT, COGNITION_LIMIT_MAX, COGNITION_LIMIT_MIN, COGNITION_PURGE_BATCH, ConsolidationVerdictSchema, DEFAULT_VARIANT_ID, EPISODE_PROBE_LIMIT_DEFAULT, EPISODE_PROBE_LIMIT_MIN, EPISODE_RECENCY_MIDPOINT_DEFAULT, EPISODE_RECENCY_MIDPOINT_MAX, EPISODE_RECENCY_MIDPOINT_MIN, EPISODE_RECENCY_SCALE_SECONDS_DEFAULT, EPISODE_RECENCY_SCALE_SECONDS_MAX, EPISODE_RECENCY_SCALE_SECONDS_MIN, EPISODE_RECENCY_WEIGHT_DEFAULT, EPISODE_RECENCY_WEIGHT_MAX, EPISODE_RECENCY_WEIGHT_MIN, EPISODE_SCORE_THRESHOLD_DEFAULT, EPISODE_SCORE_THRESHOLD_MAX, EPISODE_SCORE_THRESHOLD_MIN, EPISODE_TAGS, EPISODE_TEXT_LIMIT, ExtractionSchema, HERO_VIDEO_TITLE_ISSUE, INSIGHTS_MAX_PER_TURN, INSIGHT_TAGS, INSIGHT_TEXT_LIMIT, IntentSchema, MEMORY_TOOL_NAMES, MemoryEnrichmentSchema, NON_PAGE_EXTENSIONS, TOOL_DESCRIPTIONS, TOOL_NAMES, VARIANT_NAMES, cardSchema, categorizeTools, clampCognitionLimit, clampEpisodeProbeLimit, clampEpisodeRecencyMidpoint, clampEpisodeRecencyScaleSeconds, clampEpisodeRecencyWeight, clampEpisodeScoreThreshold, compareSchema, createTextItemSchema, deriveSchemaKeys, describeSchema, discardedReferenceSchema, formatZodIssues, formatZodShape, galleryItemSchema, hasBlockedImageHost, heroVideoHasTitle, imagelistSchema, internationalCoverageSchema, isAllFieldsNullWipe, isPrivateOrLocalhost, isTrustedImageUrl, isTrustedUrl, markerSchema, memoryProfileResponseSchema, mergeCognitionProfiles, normalizeInsightPath, ocrSchema, parseStoredProfile, productSchema, referenceGalleryItemSchema, referenceLineSchema, relatedStorySchema, safeMediaUrl, safeMediaUrlOrEmpty, safeUrl, safeVideoUrl, safeVideoUrlOrEmpty, shoplistSchema, sourceSchema, stockmarketItemSchema, stockmarketListSchema, summarySchema, videoGalleryItemSchema, videolistSchema };
|
|
1096
|
+
export { BLOCKED_IMAGE_HOSTS, BLOCKED_URL_HOSTS, BROWSER_TOOL_NAMES, COGNITION_LIMIT_DEFAULT, COGNITION_LIMIT_MAX, COGNITION_LIMIT_MIN, COGNITION_PURGE_BATCH, CONVICTION_TAGS, CONVICTION_TEXT_LIMIT, ConsolidationVerdictSchema, DEFAULT_VARIANT_ID, EPISODE_PROBE_LIMIT_DEFAULT, EPISODE_PROBE_LIMIT_MIN, EPISODE_RECENCY_MIDPOINT_DEFAULT, EPISODE_RECENCY_MIDPOINT_MAX, EPISODE_RECENCY_MIDPOINT_MIN, EPISODE_RECENCY_SCALE_SECONDS_DEFAULT, EPISODE_RECENCY_SCALE_SECONDS_MAX, EPISODE_RECENCY_SCALE_SECONDS_MIN, EPISODE_RECENCY_WEIGHT_DEFAULT, EPISODE_RECENCY_WEIGHT_MAX, EPISODE_RECENCY_WEIGHT_MIN, EPISODE_SCORE_THRESHOLD_DEFAULT, EPISODE_SCORE_THRESHOLD_MAX, EPISODE_SCORE_THRESHOLD_MIN, EPISODE_TAGS, EPISODE_TEXT_LIMIT, ExtractionSchema, HERO_VIDEO_TITLE_ISSUE, INSIGHTS_MAX_PER_TURN, INSIGHT_TAGS, INSIGHT_TEXT_LIMIT, IntentSchema, MEMORY_TOOL_NAMES, MemoryClusterSummarySchema, MemoryEnrichmentSchema, NON_PAGE_EXTENSIONS, TOOL_DESCRIPTIONS, TOOL_NAMES, VARIANT_NAMES, cardSchema, categorizeTools, clampCognitionLimit, clampEpisodeProbeLimit, clampEpisodeRecencyMidpoint, clampEpisodeRecencyScaleSeconds, clampEpisodeRecencyWeight, clampEpisodeScoreThreshold, compareSchema, createTextItemSchema, deriveSchemaKeys, describeSchema, discardedReferenceSchema, formatZodIssues, formatZodShape, galleryItemSchema, hasBlockedImageHost, heroVideoHasTitle, imagelistSchema, internationalCoverageSchema, isAllFieldsNullWipe, isPrivateOrLocalhost, isTrustedImageUrl, isTrustedUrl, markerSchema, memoryProfileResponseSchema, mergeCognitionProfiles, normalizeInsightPath, ocrSchema, parseStoredProfile, productSchema, referenceGalleryItemSchema, referenceLineSchema, relatedStorySchema, safeMediaUrl, safeMediaUrlOrEmpty, safeUrl, safeVideoUrl, safeVideoUrlOrEmpty, shoplistSchema, sourceSchema, stockmarketItemSchema, stockmarketListSchema, summarySchema, videoGalleryItemSchema, videolistSchema };
|
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.
|
|
4
|
+
"version": "0.1.15",
|
|
5
5
|
"packageManager": "pnpm@11.25.0",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"turndown": "^7.2.4"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
|
-
"ai": "^7.0.
|
|
63
|
+
"ai": "^7.0.89",
|
|
64
64
|
"zod": "^4.5.4"
|
|
65
65
|
},
|
|
66
66
|
"peerDependenciesMeta": {
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"@changesets/cli": "^3.0.1",
|
|
73
73
|
"@eslint/js": "^10.0.1",
|
|
74
74
|
"@types/eslint": "^9.6.1",
|
|
75
|
-
"@types/node": "^26.4.
|
|
75
|
+
"@types/node": "^26.4.1",
|
|
76
76
|
"@types/turndown": "^5.0.6",
|
|
77
77
|
"@vitest/coverage-v8": "4.1.11",
|
|
78
78
|
"depcheck": "^1.4.7",
|
|
@@ -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<{
|