@triplef/agent 0.1.26 → 0.1.28
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 +13 -2
- package/dist/prompts/index.mjs +84 -21
- package/dist/schemas/index.d.ts +16 -1
- package/dist/schemas/index.mjs +39 -16
- package/dist/tools/index.mjs +2 -2
- package/package.json +3 -3
package/dist/prompts/index.d.ts
CHANGED
|
@@ -141,6 +141,17 @@ declare function buildVocabularySection(vocab?: TaxonomyVocabulary): string;
|
|
|
141
141
|
|
|
142
142
|
declare function buildEncyclopediaClassifyPrompt(vocabulary?: TaxonomyVocabulary): string;
|
|
143
143
|
|
|
144
|
+
declare const ENCYCLOPEDIA_INGEST_TRIAGE_INSTRUCTIONS: string;
|
|
145
|
+
declare function buildEncyclopediaIngestTriagePrompt(params: {
|
|
146
|
+
topic: string;
|
|
147
|
+
candidates: Array<{
|
|
148
|
+
index: number;
|
|
149
|
+
title?: string;
|
|
150
|
+
excerpt: string;
|
|
151
|
+
}>;
|
|
152
|
+
maxPayloadChars?: number;
|
|
153
|
+
}): string;
|
|
154
|
+
|
|
144
155
|
declare function formatProvenanceLine(line: {
|
|
145
156
|
text: string;
|
|
146
157
|
role: string;
|
|
@@ -207,7 +218,7 @@ declare function buildMemoryProfilePrompt(params: {
|
|
|
207
218
|
maxPayloadChars?: number;
|
|
208
219
|
}): string;
|
|
209
220
|
|
|
210
|
-
declare const MEMORY_WRITE_INSTRUCTIONS = "MEMORY WRITE JOB \u2014 one purpose: decide whether THIS turn yielded anything worth persisting, and store it in the correct lane via the memory-partition-remember or memory-cognition-remember tool.\n\nTwo lanes, never confused:\n- memory-partition = the OBJECTIVE fact store: external-world facts, factual records, project details, and events the user stated, subjects gathered this turn, or facts the user asked you to remember.\n- memory-cognition = the SUBJECTIVE profile store: every preference, interest, trait, or internal state of the user (stated or inferred) \u2014 YOUR understanding of the user, persona learnings included.\n\nYou receive:\n- USER REQUEST: what the user asked.\n- PRIOR MEMORY: facts already stored for this user (may be empty).\n- PROBED THIS TURN: what memory-partition-recall already surfaced for this turn (may be empty) \u2014 already known, never re-store.\n- GATHERED DATA: summarized tool results from this turn (web searches, lookups).\n\nStore into the PARTITION lane (call memory-partition-remember) only when it is durable, objective, and user-specific:\n- A factual record the user states or asks you to track (contact info, a decision, a project detail, an event, their setup \u2014 however phrased, any language).\n- Knowledge about a subject the user cares about that was gathered this turn and extends what is already in PRIOR MEMORY.\n\nROUTING CONSTRAINT (absolute): extract ONLY objective, external facts to the partition. You MUST NOT store user preferences, behavioral traits, or internal states there (\"the user likes\u2026\", \"the user is interested in\u2026\", \"the user prefers\u2026\"). All user profile and persona data is deferred to the cognition tier.\n\nStore into the COGNITION lane (call memory-cognition-remember) whenever the turn yields SUBJECTIVE user data, stated or derived:\n- A preference or interest the user states outright (favorite X, a like or dislike, a style choice) \u2014 stated preferences live HERE, never in the partition.\n- An inferred trait, a standing interest, a working nuance, or a connection between facts the turn supports.\n- Never an objective fact \u2014 those belong in the partition lane.\n\nSTORAGE MECHANICS \u2014 how your memory works (write for the retriever):\n- Each stored record is embedded as a whole AND matched sentence-by-sentence at recall time (multi-variant retrieval). One self-contained fact per call; a single long, dense sentence is fine, but lead with the subject (\"Sam's phone number is 555-1234\", never \"His number is \u2026\").\n- Restating a record verbatim OVERWRITES it in place \u2014 updates are restatements of the full corrected statement, not diffs.\n- tags are the ONLY topic-filter vocabulary at recall \u2014 reuse stable, lowercase topic labels (partition lane only). Tags are NARROW and specific: entity names, product names, game titles (\"amd\", \"stellar blade\", \"stellar blade blood rain\").\n- The macro-taxonomy routes a fact into its family hierarchy (partition lane only), top-down: CLUSTER \u2192 COMMUNITY \u2192 HUB \u2192 NODE (the NODE is the stored record itself \u2014 never named):\n - category (CLUSTER): ONE lowercase PLURAL family noun \u2014 stocks, games, pets, work, health, finance, contacts \u2026\n - community (COMMUNITY): ONE lowercase PLURAL sub-family narrowing the category (\"survival games\" under \"games\"); omit when no sub-family applies.\n - subject (HUB): the lowercase SINGULAR main subject entity the fact is about (\"project zomboid\", \"amd\", \"sam\") \u2014 a specific name, never pluralized; always include when the fact is about a specific entity.\n A category or community is NEVER a specific entity, product, company, or game title: \"amd\" is a subject under the category \"stocks\"; \"stellar blade\" is a subject under the category \"games\". Always include category; reuse the existing labels whenever they fit.\n\nTAXONOMY PROBING (pick first, create if necessary): before naming a community or hub you are not certain exists, call memory-taxonomy-probe top-down \u2014 cluster \u2192 community \u2192 hub \u2014 and ADOPT a returned candidate by naming it VERBATIM in the remember call (its id becomes the next probe's parentId). CREATE a new label only when every candidate misses the meaning \u2014 then follow the phrasing rules (plural family/sub-family, singular hub) and optionally pass an \"icon\" from the curated set for the label you create. The known-vocabulary section below already lists likely fits; probing confirms them or finds better ones.\n\nDo NOT store:\n- Public facts merely fetched this turn that do not relate to the user (e.g. generic web results).\n- Anything already covered by PRIOR MEMORY or PROBED THIS TURN \u2014 extend or update it via the remember call; do not repeat.\n- Tool artifacts: URLs, search scores, image metadata, raw JSON keys.\n- Inferred, assumed, or extrapolated details about the user that neither their words nor GATHERED DATA support \u2014 if the user did not state it (or clearly imply it), it is not memory; when in doubt, answer \"none\".\n\nRules:\n- Each remember call stores ONE self-contained statement (stand-alone, understandable weeks later without this conversation's context).\n- Call each remember tool once per distinct durable item \u2014 no more.\n- If nothing durable surfaced, produce a one-word text answer (\"none\") and make NO tool call. An empty memory write is a correct outcome, never a failure.";
|
|
221
|
+
declare const MEMORY_WRITE_INSTRUCTIONS = "MEMORY WRITE JOB \u2014 one purpose: decide whether THIS turn yielded anything worth persisting, and store it in the correct lane via the memory-partition-remember or memory-cognition-remember tool.\n\nTwo lanes, never confused:\n- memory-partition = the OBJECTIVE fact store: external-world facts, factual records, project details, and events the user stated, subjects gathered this turn, or facts the user asked you to remember.\n- memory-cognition = the SUBJECTIVE profile store: every preference, interest, trait, or internal state of the user (stated or inferred) \u2014 YOUR understanding of the user, persona learnings included.\n\nYou receive:\n- USER REQUEST: what the user asked.\n- PRIOR MEMORY: facts already stored for this user (may be empty).\n- PROBED THIS TURN: what memory-partition-recall already surfaced for this turn (may be empty) \u2014 already known, never re-store.\n- GATHERED DATA: summarized tool results from this turn (web searches, lookups).\n\nStore into the PARTITION lane (call memory-partition-remember) only when it is durable, objective, and user-specific:\n- A factual record the user states or asks you to track (contact info, a decision, a project detail, an event, their setup \u2014 however phrased, any language).\n- Knowledge about a subject the user cares about that was gathered this turn and extends what is already in PRIOR MEMORY.\n\nROUTING CONSTRAINT (absolute): extract ONLY objective, external facts to the partition. You MUST NOT store user preferences, behavioral traits, or internal states there (\"the user likes\u2026\", \"the user is interested in\u2026\", \"the user prefers\u2026\"). All user profile and persona data is deferred to the cognition tier.\n\nStore into the COGNITION lane (call memory-cognition-remember) whenever the turn yields SUBJECTIVE user data, stated or derived:\n- A preference or interest the user states outright (favorite X, a like or dislike, a style choice) \u2014 stated preferences live HERE, never in the partition.\n- An inferred trait, a standing interest, a working nuance, or a connection between facts the turn supports.\n- Never an objective fact \u2014 those belong in the partition lane.\n\nSTORAGE MECHANICS \u2014 how your memory works (write for the retriever):\n- Each stored record is embedded as a whole AND matched sentence-by-sentence at recall time (multi-variant retrieval). One self-contained fact per call; a single long, dense sentence is fine, but lead with the subject (\"Sam's phone number is 555-1234\", never \"His number is \u2026\").\n- Restating a record verbatim OVERWRITES it in place \u2014 updates are restatements of the full corrected statement, not diffs.\n- tags are the ONLY topic-filter vocabulary at recall \u2014 reuse stable, lowercase topic labels (partition lane only). Tags are NARROW and specific: entity names, product names, game titles (\"amd\", \"stellar blade\", \"stellar blade blood rain\").\n- The macro-taxonomy routes a fact into its family hierarchy (partition lane only), top-down: CLUSTER \u2192 COMMUNITY \u2192 HUB \u2192 NODE (the NODE is the stored record itself \u2014 never named):\n - category (CLUSTER): ONE lowercase PLURAL family noun \u2014 stocks, games, pets, work, health, finance, contacts \u2026\n - community (COMMUNITY): ONE lowercase PLURAL sub-family narrowing the category (\"survival games\" under \"games\", \"tv shows\" under \"shows\"); omit when no sub-family applies.\n - subject (HUB): the lowercase SINGULAR main subject entity the fact is about (\"project zomboid\", \"amd\", \"sam\") \u2014 a specific name, never pluralized; always include when the fact is about a specific entity.\n A category or community is NEVER a specific entity, product, company, or game title: \"amd\" is a subject under the category \"stocks\"; \"stellar blade\" is a subject under the category \"games\"; a show/work title like \"breaking-bad\" is a tag or hub, never a community. Always include category; reuse the existing labels whenever they fit.\n- PERSONA & FICTION CONTENT (absolute): content about an adopted persona, a roleplay, or a fictional/entertainment work routes by its real-world MEDIUM, never by in-universe domains \u2014 a TV persona's biography, family, or career belongs under the medium family (category \"shows\", community \"tv shows\", hub the show's title or the persona name); never \"family\", \"education\", \"business\", or \"science\" for invented content.\n\nTAXONOMY PROBING (pick first, create if necessary): before naming a community or hub you are not certain exists, call memory-taxonomy-probe top-down \u2014 cluster \u2192 community \u2192 hub \u2014 and ADOPT a returned candidate by naming it VERBATIM in the remember call (its id becomes the next probe's parentId). CREATE a new label only when every candidate misses the meaning \u2014 then follow the phrasing rules (plural family/sub-family, singular hub) and optionally pass an \"icon\" from the curated set for the label you create. The known-vocabulary section below already lists likely fits; probing confirms them or finds better ones.\n\nDo NOT store:\n- Public facts merely fetched this turn that do not relate to the user (e.g. generic web results).\n- Anything already covered by PRIOR MEMORY or PROBED THIS TURN \u2014 extend or update it via the remember call; do not repeat.\n- Tool artifacts: URLs, search scores, image metadata, raw JSON keys.\n- Inferred, assumed, or extrapolated details about the user that neither their words nor GATHERED DATA support \u2014 if the user did not state it (or clearly imply it), it is not memory; when in doubt, answer \"none\".\n\nRules:\n- Each remember call stores ONE self-contained statement (stand-alone, understandable weeks later without this conversation's context).\n- Call each remember tool once per distinct durable item \u2014 no more.\n- If nothing durable surfaced, produce a one-word text answer (\"none\") and make NO tool call. An empty memory write is a correct outcome, never a failure.";
|
|
211
222
|
declare function buildMemoryWritePrompt(params: {
|
|
212
223
|
userRequest: string;
|
|
213
224
|
priorMemory?: string;
|
|
@@ -408,4 +419,4 @@ declare const verdictSpineSnippet: TemplateSnippet;
|
|
|
408
419
|
|
|
409
420
|
declare const videoGallerySnippet: TemplateSnippet;
|
|
410
421
|
|
|
411
|
-
export { COMMONMARK_FORMAT, COMPARE_INSTRUCTIONS, COMPARE_VISUAL_INSTRUCTIONS, CONVICTION_INSTRUCTIONS, type ContentSystemPromptParams, DESCRIBE_CONCISE_INSTRUCTIONS, DESCRIBE_DETAILED_INSTRUCTIONS, DESCRIBE_INSTRUCTIONS, FINAL_REMINDER, FRICTION_INSTRUCTIONS, type FrictionFact, 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, RESEARCH_FRICTION_QUERY_INSTRUCTIONS, RESEARCH_TRIAGE_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, TAXONOMY_RECONCILE_INSTRUCTIONS, TEMPLATE_VARIANTS, TEXT_CODING_INSTRUCTIONS, TEXT_FAMILIARITY_INSTRUCTIONS, TEXT_INSTRUCTIONS, TOOL_RESULTS_RULES, type TaxonomyVocabulary, type TemplateSnippet, VIDEOLIST_INSTRUCTIONS, articlePreset, assessmentListsSnippet, authorMetaSnippet, bodyBriefSnippet, bodyExtensiveSnippet, buildBaseSystemPrompt, buildClarificationTranslationSystemPrompt, buildClarificationTranslationUserPrompt, buildClassifyTranscript, buildClusterSummaryPrompt, buildCognitionProfileSection, buildConsolidatePrompt, buildContentSystemPrompt, buildContextSummarySection, buildConvictionSynthesisPrompt, buildCorrectionPrompt, buildDescribePdfPagePrompt, buildEncyclopediaClassifyPrompt, buildEnrichPrompt, buildExecuteLanguageInstruction, buildExtractionCorrectionPrompt, buildExtractionPrompt, buildFrictionPrompt, buildImageExecutePrompt, buildIntentCorrectionPrompt, buildIntentSelectionPrompt, buildLanguageRule, buildLayoutInstruction, buildLocalizationRule, buildMemoryProbeSection, buildMemoryProfilePrompt, buildMemoryWritePrompt, buildMergeDirective, buildMissingToolsPrompt, buildOutputContract, buildResearchFrictionQueryPrompt, buildResearchTriagePrompt, buildSnippetInstruction, buildSourcePolicyPrompt, buildStockmarketNote, buildStructuredJsonPrompt, buildStructuredPrompt, buildSynopsisProbeSection, buildTaxonomyPairPrompt, buildTaxonomyReconcileSystemPrompt, buildToolExecutePrompt, buildVocabularySection, bylineDatelineSnippet, cardsSnippet, comparisonSchema, comparisonSnippet, composeSnippetKeys, composeSnippetSchema, conclusionSnippet, evaluationPreset, formatCurrentTimestamp, formatProvenanceLine, formatToolAvailabilityCatalog, 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 };
|
|
422
|
+
export { COMMONMARK_FORMAT, COMPARE_INSTRUCTIONS, COMPARE_VISUAL_INSTRUCTIONS, CONVICTION_INSTRUCTIONS, type ContentSystemPromptParams, DESCRIBE_CONCISE_INSTRUCTIONS, DESCRIBE_DETAILED_INSTRUCTIONS, DESCRIBE_INSTRUCTIONS, ENCYCLOPEDIA_INGEST_TRIAGE_INSTRUCTIONS, FINAL_REMINDER, FRICTION_INSTRUCTIONS, type FrictionFact, 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, RESEARCH_FRICTION_QUERY_INSTRUCTIONS, RESEARCH_TRIAGE_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, TAXONOMY_RECONCILE_INSTRUCTIONS, TEMPLATE_VARIANTS, TEXT_CODING_INSTRUCTIONS, TEXT_FAMILIARITY_INSTRUCTIONS, TEXT_INSTRUCTIONS, TOOL_RESULTS_RULES, type TaxonomyVocabulary, type TemplateSnippet, VIDEOLIST_INSTRUCTIONS, articlePreset, assessmentListsSnippet, authorMetaSnippet, bodyBriefSnippet, bodyExtensiveSnippet, buildBaseSystemPrompt, buildClarificationTranslationSystemPrompt, buildClarificationTranslationUserPrompt, buildClassifyTranscript, buildClusterSummaryPrompt, buildCognitionProfileSection, buildConsolidatePrompt, buildContentSystemPrompt, buildContextSummarySection, buildConvictionSynthesisPrompt, buildCorrectionPrompt, buildDescribePdfPagePrompt, buildEncyclopediaClassifyPrompt, buildEncyclopediaIngestTriagePrompt, buildEnrichPrompt, buildExecuteLanguageInstruction, buildExtractionCorrectionPrompt, buildExtractionPrompt, buildFrictionPrompt, buildImageExecutePrompt, buildIntentCorrectionPrompt, buildIntentSelectionPrompt, buildLanguageRule, buildLayoutInstruction, buildLocalizationRule, buildMemoryProbeSection, buildMemoryProfilePrompt, buildMemoryWritePrompt, buildMergeDirective, buildMissingToolsPrompt, buildOutputContract, buildResearchFrictionQueryPrompt, buildResearchTriagePrompt, buildSnippetInstruction, buildSourcePolicyPrompt, buildStockmarketNote, buildStructuredJsonPrompt, buildStructuredPrompt, buildSynopsisProbeSection, buildTaxonomyPairPrompt, buildTaxonomyReconcileSystemPrompt, buildToolExecutePrompt, buildVocabularySection, bylineDatelineSnippet, cardsSnippet, comparisonSchema, comparisonSnippet, composeSnippetKeys, composeSnippetSchema, conclusionSnippet, evaluationPreset, formatCurrentTimestamp, formatProvenanceLine, formatToolAvailabilityCatalog, 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
|
@@ -3019,14 +3019,18 @@ var EncyclopediaClassifySchema = z.object({
|
|
|
3019
3019
|
/**
|
|
3020
3020
|
* One broad lowercase PLURAL family label for the document (e.g. `games`,
|
|
3021
3021
|
* `work`, `health`) — the constellation's CLUSTER tier. Never a specific
|
|
3022
|
-
* entity, product, company, or title.
|
|
3022
|
+
* entity, product, company, or title. Fiction/entertainment content takes
|
|
3023
|
+
* the medium family (e.g. `shows`) — never an in-universe domain (`family`,
|
|
3024
|
+
* `education`, `business` describe reality, not an invented life).
|
|
3023
3025
|
*/
|
|
3024
3026
|
category: z.string(),
|
|
3025
3027
|
/**
|
|
3026
3028
|
* One lowercase PLURAL sub-family label narrowing the category (e.g.
|
|
3027
|
-
* `survival-games` under `games`) — the
|
|
3028
|
-
* level below the cluster. Optional:
|
|
3029
|
-
* a specific entity, product,
|
|
3029
|
+
* `survival-games` under `games`, `tv-shows` under `shows`) — the
|
|
3030
|
+
* constellation's COMMUNITY tier, one level below the cluster. Optional:
|
|
3031
|
+
* omit when no sub-family applies. Never a specific entity, product,
|
|
3032
|
+
* company, or title — a show/work title like `breaking-bad` is a topic or
|
|
3033
|
+
* tag, never a community.
|
|
3030
3034
|
*/
|
|
3031
3035
|
community: z.string().optional(),
|
|
3032
3036
|
/**
|
|
@@ -3086,8 +3090,9 @@ TAXONOMY HIERARCHY (top-down): CLUSTER \u2192 COMMUNITY \u2192 HUB \u2192 NODE
|
|
|
3086
3090
|
- NODE = the individual chunks of the document itself \u2014 the leaves attached to the hub (you never name these).
|
|
3087
3091
|
|
|
3088
3092
|
- The document may be a fetched web page, an uploaded file, or a search-result snippet. Classify by its CONTENT, never by its source shape \u2014 a file has no domain, and that must not matter.
|
|
3093
|
+
- FICTION & ENTERTAINMENT CONTENT (absolute): a document about an entertainment work or fictional universe classifies by its real-world MEDIUM, never by the work's in-universe domains. A TV episode page about a character's family or career is NOT "family", "education", "business", or "science" \u2014 the category is the medium family (e.g. "shows"), the community a true plural sub-family (e.g. "tv-shows"), and the work's title is the topic (e.g. "breaking bad"), never the community.
|
|
3089
3094
|
- category (CLUSTER): ONE broad lowercase PLURAL family noun (e.g. "games", "work", "health", "finance") that groups the topic into a family. It labels the TOPIC \u2014 never a side theme or an incidental mention on the page. Never a specific entity, product, company, or title.
|
|
3090
|
-
- community (COMMUNITY, optional): ONE lowercase PLURAL sub-family narrowing the category (e.g. "survival-games" under "games"). Omit it when no sub-family applies; never a specific entity, product, company, or title.
|
|
3095
|
+
- community (COMMUNITY, optional): ONE lowercase PLURAL sub-family narrowing the category (e.g. "survival-games" under "games"). Omit it when no sub-family applies; never a specific entity, product, company, or title \u2014 a show/work title like "breaking-bad" is a topic or a tag, never a community.
|
|
3091
3096
|
- topic (HUB): the document's MAIN subject entity \u2014 what the whole source is about (e.g. "wuthering waves", "q3 budget", "rust borrow checker") \u2014 SINGULAR and specific. A short, reusable label \u2014 not a sentence, not a URL, not a filename, never a domain or a site name. Never a sub-part of the main subject (a chapter, a location, one feature) and never an adjacent proper noun (a publisher, an author, a related event) \u2014 when a title-level entity exists, it is the topic.
|
|
3092
3097
|
- When the document is about a KNOWN TOPIC, output that label VERBATIM \u2014 prefer "neverness to everness" over minting a variant like "nte".
|
|
3093
3098
|
- TAXONOMY PROBING (pick first, create if necessary): when the memory-taxonomy-probe tool is available, probe top-down \u2014 cluster \u2192 community \u2192 hub \u2014 before answering, and ADOPT returned candidates VERBATIM (a candidate's id becomes the next probe's parentId). CREATE a new label only when no candidate fits; on creation you may pass one "icon" from the curated taxonomy icon set for the deepest NEW label.
|
|
@@ -3101,6 +3106,54 @@ FINAL REMINDER:
|
|
|
3101
3106
|
- Output ONLY valid JSON matching the exact schema above. No markdown code fences, no explanations, preamble, or postscript.`
|
|
3102
3107
|
});
|
|
3103
3108
|
}
|
|
3109
|
+
var EncyclopediaIngestTriageDecisionSchema = z.object({
|
|
3110
|
+
/** The candidate's index in the payload — echoed back so the worker maps the verdict to its item. */
|
|
3111
|
+
index: z.number().int().min(0),
|
|
3112
|
+
/** True = on-topic, persist; false = off-topic, strip. */
|
|
3113
|
+
keep: z.boolean(),
|
|
3114
|
+
/** One-sentence reason — logged for observability, never shown to users. */
|
|
3115
|
+
reason: z.string()
|
|
3116
|
+
});
|
|
3117
|
+
var EncyclopediaIngestTriageSchema = z.object({
|
|
3118
|
+
decisions: z.array(EncyclopediaIngestTriageDecisionSchema).max(150)
|
|
3119
|
+
});
|
|
3120
|
+
|
|
3121
|
+
// src/prompts/memory/encyclopedia-ingest-triage.prompt.ts
|
|
3122
|
+
var ENCYCLOPEDIA_INGEST_TRIAGE_INSTRUCTIONS = buildStructuredPrompt(EncyclopediaIngestTriageSchema, {
|
|
3123
|
+
before: `ENCYCLOPEDIA INGEST TRIAGE \u2014 one purpose: keep the knowledge base clean by persisting ONLY content that is on-topic for the current request.
|
|
3124
|
+
|
|
3125
|
+
You receive:
|
|
3126
|
+
- TOPIC: what the user is currently asking about (the retrieval query).
|
|
3127
|
+
- CANDIDATES: a numbered list of items gathered this turn \u2014 fetched documents and search-result snippets \u2014 each with a title and a short excerpt.
|
|
3128
|
+
|
|
3129
|
+
For each candidate decide:
|
|
3130
|
+
- keep=true: substantively about TOPIC (or a closely related aspect the user will plausibly need again) \u2014 worth persisting.
|
|
3131
|
+
- keep=false: off-topic, incidental, navigation, ads, clickbait, login walls, or content that merely mentions TOPIC in passing \u2014 strip it.
|
|
3132
|
+
|
|
3133
|
+
Rules:
|
|
3134
|
+
- Judge from the excerpt alone \u2014 you have not read the full page.
|
|
3135
|
+
- When in doubt, keep=false: a clean knowledge base beats a complete one.
|
|
3136
|
+
- Never invent facts; the reason is one short sentence of honest justification.
|
|
3137
|
+
- Output one decision per candidate, echoing its index.
|
|
3138
|
+
|
|
3139
|
+
OUTPUT FORMAT \u2014 output ONLY valid JSON:`,
|
|
3140
|
+
after: "No markdown fences, no explanations."
|
|
3141
|
+
});
|
|
3142
|
+
function buildEncyclopediaIngestTriagePrompt(params) {
|
|
3143
|
+
const body = JSON.stringify(
|
|
3144
|
+
params.candidates.map((candidate) => ({
|
|
3145
|
+
index: candidate.index,
|
|
3146
|
+
title: candidate.title ?? "(untitled)",
|
|
3147
|
+
excerpt: candidate.excerpt
|
|
3148
|
+
}))
|
|
3149
|
+
);
|
|
3150
|
+
return [
|
|
3151
|
+
`TOPIC: ${params.topic}`,
|
|
3152
|
+
`CANDIDATES:
|
|
3153
|
+
${limitText(body, params.maxPayloadChars)}`,
|
|
3154
|
+
"Write the decisions JSON object now."
|
|
3155
|
+
].join("\n\n");
|
|
3156
|
+
}
|
|
3104
3157
|
|
|
3105
3158
|
// src/prompts/memory/friction-prompt.constant.ts
|
|
3106
3159
|
var FRICTION_INSTRUCTIONS = `You screen memory records for contradictions.
|
|
@@ -3444,9 +3497,10 @@ STORAGE MECHANICS \u2014 how your memory works (write for the retriever):
|
|
|
3444
3497
|
- tags are the ONLY topic-filter vocabulary at recall \u2014 reuse stable, lowercase topic labels (partition lane only). Tags are NARROW and specific: entity names, product names, game titles ("amd", "stellar blade", "stellar blade blood rain").
|
|
3445
3498
|
- The macro-taxonomy routes a fact into its family hierarchy (partition lane only), top-down: CLUSTER \u2192 COMMUNITY \u2192 HUB \u2192 NODE (the NODE is the stored record itself \u2014 never named):
|
|
3446
3499
|
- category (CLUSTER): ONE lowercase PLURAL family noun \u2014 stocks, games, pets, work, health, finance, contacts \u2026
|
|
3447
|
-
- community (COMMUNITY): ONE lowercase PLURAL sub-family narrowing the category ("survival games" under "games"); omit when no sub-family applies.
|
|
3500
|
+
- community (COMMUNITY): ONE lowercase PLURAL sub-family narrowing the category ("survival games" under "games", "tv shows" under "shows"); omit when no sub-family applies.
|
|
3448
3501
|
- subject (HUB): the lowercase SINGULAR main subject entity the fact is about ("project zomboid", "amd", "sam") \u2014 a specific name, never pluralized; always include when the fact is about a specific entity.
|
|
3449
|
-
A category or community is NEVER a specific entity, product, company, or game title: "amd" is a subject under the category "stocks"; "stellar blade" is a subject under the category "games". Always include category; reuse the existing labels whenever they fit.
|
|
3502
|
+
A category or community is NEVER a specific entity, product, company, or game title: "amd" is a subject under the category "stocks"; "stellar blade" is a subject under the category "games"; a show/work title like "breaking-bad" is a tag or hub, never a community. Always include category; reuse the existing labels whenever they fit.
|
|
3503
|
+
- PERSONA & FICTION CONTENT (absolute): content about an adopted persona, a roleplay, or a fictional/entertainment work routes by its real-world MEDIUM, never by in-universe domains \u2014 a TV persona's biography, family, or career belongs under the medium family (category "shows", community "tv shows", hub the show's title or the persona name); never "family", "education", "business", or "science" for invented content.
|
|
3450
3504
|
|
|
3451
3505
|
TAXONOMY PROBING (pick first, create if necessary): before naming a community or hub you are not certain exists, call memory-taxonomy-probe top-down \u2014 cluster \u2192 community \u2192 hub \u2014 and ADOPT a returned candidate by naming it VERBATIM in the remember call (its id becomes the next probe's parentId). CREATE a new label only when every candidate misses the meaning \u2014 then follow the phrasing rules (plural family/sub-family, singular hub) and optionally pass an "icon" from the curated set for the label you create. The known-vocabulary section below already lists likely fits; probing confirms them or finds better ones.
|
|
3452
3506
|
|
|
@@ -3631,15 +3685,19 @@ var ExtractedFactSchema = z.object({
|
|
|
3631
3685
|
* One broad lowercase PLURAL family label for THIS fact (e.g. `stocks`,
|
|
3632
3686
|
* `pets`, `games`) — the constellation's CLUSTER tier. Inherits the
|
|
3633
3687
|
* turn-side category when omitted. Never
|
|
3634
|
-
* a specific entity, product, company, or game title.
|
|
3688
|
+
* a specific entity, product, company, or game title. Persona/roleplay or
|
|
3689
|
+
* fictional content classifies by its real-world medium (a TV persona's
|
|
3690
|
+
* biography belongs under `shows`), never by in-universe domains (`family`,
|
|
3691
|
+
* `education`, `business` describe reality, not an invented life).
|
|
3635
3692
|
*/
|
|
3636
3693
|
category: z.string().optional(),
|
|
3637
3694
|
/**
|
|
3638
3695
|
* One lowercase PLURAL sub-family label narrowing THIS fact's category
|
|
3639
|
-
* (e.g. `survival-games` under `games`) — the
|
|
3640
|
-
* tier, one level below the cluster. Inherits the
|
|
3641
|
-
* omitted; omit when no sub-family applies. Never
|
|
3642
|
-
* product, or title
|
|
3696
|
+
* (e.g. `survival-games` under `games`, `tv-shows` under `shows`) — the
|
|
3697
|
+
* constellation's COMMUNITY tier, one level below the cluster. Inherits the
|
|
3698
|
+
* turn-side community when omitted; omit when no sub-family applies. Never
|
|
3699
|
+
* a specific entity, product, or title — a show/work title like
|
|
3700
|
+
* `breaking-bad` is a tag or hub, never a community.
|
|
3643
3701
|
*/
|
|
3644
3702
|
community: z.string().optional(),
|
|
3645
3703
|
/** What kind of durable thing this is (see FACT_KINDS). */
|
|
@@ -3668,17 +3726,21 @@ var ExtractionSchema = z.object({
|
|
|
3668
3726
|
* the narrow tags into one topic family, powers the relink job's
|
|
3669
3727
|
* per-category passes, and backstops facts that omit their own `category`. Never a
|
|
3670
3728
|
* specific entity, product, company, or game title: `amd` belongs under
|
|
3671
|
-
* `stocks`; `stellar blade` belongs under `games`.
|
|
3729
|
+
* `stocks`; `stellar blade` belongs under `games`. Persona/roleplay or
|
|
3730
|
+
* fictional content classifies by its real-world medium (e.g. `shows`
|
|
3731
|
+
* for a TV persona), never by in-universe domains (`family`, `education`,
|
|
3732
|
+
* `business` describe reality, not an invented life). Optional: a turn with
|
|
3672
3733
|
* nothing durable may omit it.
|
|
3673
3734
|
*/
|
|
3674
3735
|
category: z.string().optional(),
|
|
3675
3736
|
/**
|
|
3676
3737
|
* One lowercase PLURAL sub-family label narrowing the turn-side category
|
|
3677
|
-
* (e.g. `survival-games` under `games`) — the
|
|
3678
|
-
* tier: a genre, project family, or domain branch
|
|
3679
|
-
* cluster. Backstops facts that omit their own
|
|
3680
|
-
* omit it when no sub-family applies. Never a
|
|
3681
|
-
* or title
|
|
3738
|
+
* (e.g. `survival-games` under `games`, `tv-shows` under `shows`) — the
|
|
3739
|
+
* constellation's COMMUNITY tier: a genre, project family, or domain branch
|
|
3740
|
+
* one level below the cluster. Backstops facts that omit their own
|
|
3741
|
+
* `community`. Optional: omit it when no sub-family applies. Never a
|
|
3742
|
+
* specific entity, product, or title — a show/work title like
|
|
3743
|
+
* `breaking-bad` is a tag or hub, never a community.
|
|
3682
3744
|
*/
|
|
3683
3745
|
community: z.string().optional()
|
|
3684
3746
|
});
|
|
@@ -3700,6 +3762,7 @@ FACT METADATA \u2014 every fact object carries the fields the maintenance passes
|
|
|
3700
3762
|
- CLUSTER (category): a broad PLURAL family noun ("games", "stocks", "pets").
|
|
3701
3763
|
- COMMUNITY (community): a PLURAL sub-family under one cluster ("survival-games" under "games") \u2014 a genre or domain branch.
|
|
3702
3764
|
- HUB (subject): the SINGULAR main subject entity anchoring the fact ("project zomboid", "amd", "sam") \u2014 a specific name, never pluralized.
|
|
3765
|
+
PERSONA & FICTION CONTENT (absolute): facts about an adopted persona, a roleplay, or a fictional/entertainment work classify by the content's real-world MEDIUM, never by its in-universe domains. A TV persona's biography, family, career, or studies are NOT real-world walk-of-life categories \u2014 never "family", "education", "business", or "science" for invented content: the cluster is the medium family (e.g. "shows"), the community a true plural sub-family (e.g. "tv-shows"), and the show's title goes to the hub or the tags ("breaking bad"), never to the community.
|
|
3703
3766
|
Fields:
|
|
3704
3767
|
- text: the statement itself.
|
|
3705
3768
|
- subject (optional): the lowercase SINGULAR entity the fact is about \u2014 the HUB tier \u2014 "user" by default, or a person, product, or project name ("sam", "stellar blade", "payments service"). Maintenance only ever compares facts about the SAME subject, so name it whenever the fact is about a specific entity.
|
|
@@ -3716,8 +3779,8 @@ Fields:
|
|
|
3716
3779
|
- fact \u2014 any other durable fact
|
|
3717
3780
|
- stability (required): "durable" \u2014 a long-term truth that should survive until contradicted (decisions, traits, history) \u2014 or "volatile" \u2014 a current state a newer statement is EXPECTED to replace (location, tooling, versions). When in doubt, choose durable.
|
|
3718
3781
|
- Tags: 2 to 6 stable, reusable, lowercase topic labels describing what the text is about (e.g. "work", "rust", "contacts", "amd", "stellar blade"). Tags are NARROW and specific \u2014 entity names, product names, game titles. They are the vocabulary for topic-filtered recall later.
|
|
3719
|
-
- Category: ONE broad lowercase PLURAL family noun for the whole text (e.g. "stocks", "pets", "games", "health") \u2014 the CLUSTER tier \u2014 that groups the narrow tags into one topic family. A category is NEVER a specific entity, product, company, or game title: "amd" belongs under "stocks"; "stellar blade" and "stellar blade blood rain" belong under "games". Always include it when facts are emitted; omit it when nothing durable is found.
|
|
3720
|
-
- Community: ONE broad lowercase PLURAL sub-family that narrows the category (e.g. "survival-games", "action-rpgs" under "games") \u2014 the COMMUNITY tier between the cluster and the hub. Omit it when no sub-family applies; never a specific entity, product, or title.
|
|
3782
|
+
- Category: ONE broad lowercase PLURAL family noun for the whole text (e.g. "stocks", "pets", "games", "health") \u2014 the CLUSTER tier \u2014 that groups the narrow tags into one topic family. A category is NEVER a specific entity, product, company, or game title: "amd" belongs under "stocks"; "stellar blade" and "stellar blade blood rain" belong under "games". Persona/fictional content follows the PERSONA & FICTION rule above (medium family, not in-universe domains). Always include it when facts are emitted; omit it when nothing durable is found.
|
|
3783
|
+
- Community: ONE broad lowercase PLURAL sub-family that narrows the category (e.g. "survival-games", "action-rpgs" under "games"; "tv-shows" under "shows") \u2014 the COMMUNITY tier between the cluster and the hub. Omit it when no sub-family applies; never a specific entity, product, or title \u2014 a show/work title like "breaking-bad" is a tag or hub, never a community.
|
|
3721
3784
|
- If nothing durable is found, return an empty facts array; tags may still label the topic when useful.
|
|
3722
3785
|
${buildVocabularySection(vocabulary)}
|
|
3723
3786
|
PRIOR MEMORY (when the user message ends with an "ALREADY STORED IN MEMORY" section):
|
|
@@ -3775,4 +3838,4 @@ Compose the response from the snippets below. Include every snippet you can subs
|
|
|
3775
3838
|
${parts.join("\n\n")}`;
|
|
3776
3839
|
}
|
|
3777
3840
|
|
|
3778
|
-
export { COMMONMARK_FORMAT, COMPARE_INSTRUCTIONS, COMPARE_VISUAL_INSTRUCTIONS, CONVICTION_INSTRUCTIONS, DEFAULT_VARIANT_ID, DESCRIBE_CONCISE_INSTRUCTIONS, DESCRIBE_DETAILED_INSTRUCTIONS, DESCRIBE_INSTRUCTIONS, FINAL_REMINDER, FRICTION_INSTRUCTIONS, 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, RESEARCH_FRICTION_QUERY_INSTRUCTIONS, RESEARCH_TRIAGE_INSTRUCTIONS, RESPONSE_LAYOUTS, SECURITY_RULES, SHOPLIST_INSTRUCTIONS, SNIPPET_TEMPLATE_PRESETS, SOURCE_TRUTH_RULES, SOURCE_VOICE_RULES, STOCKMARKET_ITEM_INSTRUCTIONS, STOCKMARKET_LIST_INSTRUCTIONS, SUMMARY_INSTRUCTIONS, TAXONOMY_RECONCILE_INSTRUCTIONS, TEMPLATE_VARIANTS, TEXT_CODING_INSTRUCTIONS, TEXT_FAMILIARITY_INSTRUCTIONS, TEXT_INSTRUCTIONS, TOOL_RESULTS_RULES, VIDEOLIST_INSTRUCTIONS, articlePreset, assessmentListsSnippet, authorMetaSnippet, bodyBriefSnippet, bodyExtensiveSnippet, buildBaseSystemPrompt, buildClarificationTranslationSystemPrompt, buildClarificationTranslationUserPrompt, buildClassifyTranscript, buildClusterSummaryPrompt, buildCognitionProfileSection, buildConsolidatePrompt, buildContentSystemPrompt, buildContextSummarySection, buildConvictionSynthesisPrompt, buildCorrectionPrompt, buildDescribePdfPagePrompt, buildEncyclopediaClassifyPrompt, buildEnrichPrompt, buildExecuteLanguageInstruction, buildExtractionCorrectionPrompt, buildExtractionPrompt, buildFrictionPrompt, buildImageExecutePrompt, buildIntentCorrectionPrompt, buildIntentSelectionPrompt, buildLanguageRule, buildLayoutInstruction, buildLocalizationRule, buildMemoryProbeSection, buildMemoryProfilePrompt, buildMemoryWritePrompt, buildMergeDirective, buildMissingToolsPrompt, buildOutputContract, buildResearchFrictionQueryPrompt, buildResearchTriagePrompt, buildSnippetInstruction, buildSourcePolicyPrompt, buildStockmarketNote, buildStructuredJsonPrompt, buildStructuredPrompt, buildSynopsisProbeSection, buildTaxonomyPairPrompt, buildTaxonomyReconcileSystemPrompt, buildToolExecutePrompt, buildVocabularySection, bylineDatelineSnippet, cardsSnippet, comparisonSchema, comparisonSnippet, composeSnippetKeys, composeSnippetSchema, conclusionSnippet, evaluationPreset, formatCurrentTimestamp, formatProvenanceLine, formatToolAvailabilityCatalog, 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 };
|
|
3841
|
+
export { COMMONMARK_FORMAT, COMPARE_INSTRUCTIONS, COMPARE_VISUAL_INSTRUCTIONS, CONVICTION_INSTRUCTIONS, DEFAULT_VARIANT_ID, DESCRIBE_CONCISE_INSTRUCTIONS, DESCRIBE_DETAILED_INSTRUCTIONS, DESCRIBE_INSTRUCTIONS, ENCYCLOPEDIA_INGEST_TRIAGE_INSTRUCTIONS, FINAL_REMINDER, FRICTION_INSTRUCTIONS, 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, RESEARCH_FRICTION_QUERY_INSTRUCTIONS, RESEARCH_TRIAGE_INSTRUCTIONS, RESPONSE_LAYOUTS, SECURITY_RULES, SHOPLIST_INSTRUCTIONS, SNIPPET_TEMPLATE_PRESETS, SOURCE_TRUTH_RULES, SOURCE_VOICE_RULES, STOCKMARKET_ITEM_INSTRUCTIONS, STOCKMARKET_LIST_INSTRUCTIONS, SUMMARY_INSTRUCTIONS, TAXONOMY_RECONCILE_INSTRUCTIONS, TEMPLATE_VARIANTS, TEXT_CODING_INSTRUCTIONS, TEXT_FAMILIARITY_INSTRUCTIONS, TEXT_INSTRUCTIONS, TOOL_RESULTS_RULES, VIDEOLIST_INSTRUCTIONS, articlePreset, assessmentListsSnippet, authorMetaSnippet, bodyBriefSnippet, bodyExtensiveSnippet, buildBaseSystemPrompt, buildClarificationTranslationSystemPrompt, buildClarificationTranslationUserPrompt, buildClassifyTranscript, buildClusterSummaryPrompt, buildCognitionProfileSection, buildConsolidatePrompt, buildContentSystemPrompt, buildContextSummarySection, buildConvictionSynthesisPrompt, buildCorrectionPrompt, buildDescribePdfPagePrompt, buildEncyclopediaClassifyPrompt, buildEncyclopediaIngestTriagePrompt, buildEnrichPrompt, buildExecuteLanguageInstruction, buildExtractionCorrectionPrompt, buildExtractionPrompt, buildFrictionPrompt, buildImageExecutePrompt, buildIntentCorrectionPrompt, buildIntentSelectionPrompt, buildLanguageRule, buildLayoutInstruction, buildLocalizationRule, buildMemoryProbeSection, buildMemoryProfilePrompt, buildMemoryWritePrompt, buildMergeDirective, buildMissingToolsPrompt, buildOutputContract, buildResearchFrictionQueryPrompt, buildResearchTriagePrompt, buildSnippetInstruction, buildSourcePolicyPrompt, buildStockmarketNote, buildStructuredJsonPrompt, buildStructuredPrompt, buildSynopsisProbeSection, buildTaxonomyPairPrompt, buildTaxonomyReconcileSystemPrompt, buildToolExecutePrompt, buildVocabularySection, bylineDatelineSnippet, cardsSnippet, comparisonSchema, comparisonSnippet, composeSnippetKeys, composeSnippetSchema, conclusionSnippet, evaluationPreset, formatCurrentTimestamp, formatProvenanceLine, formatToolAvailabilityCatalog, 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
|
@@ -111,6 +111,21 @@ declare const ConsolidationVerdictSchema: z.ZodObject<{
|
|
|
111
111
|
}, z.core.$strip>;
|
|
112
112
|
type ConsolidationVerdict = z.infer<typeof ConsolidationVerdictSchema>;
|
|
113
113
|
|
|
114
|
+
declare const EncyclopediaIngestTriageDecisionSchema: z.ZodObject<{
|
|
115
|
+
index: z.ZodNumber;
|
|
116
|
+
keep: z.ZodBoolean;
|
|
117
|
+
reason: z.ZodString;
|
|
118
|
+
}, z.core.$strip>;
|
|
119
|
+
declare const EncyclopediaIngestTriageSchema: z.ZodObject<{
|
|
120
|
+
decisions: z.ZodArray<z.ZodObject<{
|
|
121
|
+
index: z.ZodNumber;
|
|
122
|
+
keep: z.ZodBoolean;
|
|
123
|
+
reason: z.ZodString;
|
|
124
|
+
}, z.core.$strip>>;
|
|
125
|
+
}, z.core.$strip>;
|
|
126
|
+
type EncyclopediaIngestTriageDecision = z.infer<typeof EncyclopediaIngestTriageDecisionSchema>;
|
|
127
|
+
type EncyclopediaIngestTriage = z.infer<typeof EncyclopediaIngestTriageSchema>;
|
|
128
|
+
|
|
114
129
|
declare const MemoryEnrichmentSchema: z.ZodObject<{
|
|
115
130
|
tags: z.ZodArray<z.ZodString>;
|
|
116
131
|
}, z.core.$strip>;
|
|
@@ -933,4 +948,4 @@ declare const videolistSchema: z.ZodObject<{
|
|
|
933
948
|
}, z.core.$strip>>>;
|
|
934
949
|
}, z.core.$strip>;
|
|
935
950
|
|
|
936
|
-
export { BLOCKED_IMAGE_HOSTS, BLOCKED_URL_HOSTS, COGNITION_LIMIT_DEFAULT, COGNITION_LIMIT_MAX, COGNITION_LIMIT_MIN, COGNITION_PURGE_BATCH, CONVICTION_TAGS, CONVICTION_TEXT_LIMIT, type ConsolidationVerdict, ConsolidationVerdictSchema, DEFAULT_MEDIA_COUNT, EMBEDDABLE_VIDEO_PROVIDER_CLAUSE, EMBEDDABLE_VIDEO_PROVIDER_LABELS, 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 EncyclopediaClassification, EncyclopediaClassifySchema, type EncyclopediaSearchResult, type EncyclopediaSelectInput, type EncyclopediaSelectResult, type EncyclopediaSelectedChunk, type EncyclopediaSourceDocument, type ExtractedFact, ExtractedFactSchema, ExtractionSchema, FACT_KINDS, FACT_STABILITIES, HERO_VIDEO_TITLE_ISSUE, INSIGHTS_MAX_PER_TURN, INSIGHT_TAGS, INSIGHT_TEXT_LIMIT, MORE_MEDIA_COUNT, type MemoryClusterSummary, MemoryClusterSummarySchema, type MemoryCognitionProfile, type MemoryEnrichment, MemoryEnrichmentSchema, type MemoryExtraction, type MemoryProfileInsight, type MemoryProfileResponse, type MergedCognitionProfile, NON_PAGE_EXTENSIONS, type PruneProfileTopicOutcome, type ResearchFrictionQuery, type ResearchFrictionQueryDecision, ResearchFrictionQueryDecisionSchema, ResearchFrictionQuerySchema, type ResearchTriage, type ResearchTriageDecision, ResearchTriageDecisionSchema, ResearchTriageSchema, TAXONOMY_ICON_ALLOWLIST, type TaxonomyIconName, type TaxonomyPairVerdict, TaxonomyPairVerdictSchema, 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, pruneProfileTopic, referenceGalleryItemSchema, referenceLineSchema, relatedStorySchema, safeMediaUrl, safeMediaUrlOrEmpty, safeUrl, safeVideoUrl, safeVideoUrlOrEmpty, shoplistSchema, sourceSchema, stockmarketItemSchema, stockmarketListSchema, summarySchema, videoGalleryItemSchema, videolistSchema };
|
|
951
|
+
export { BLOCKED_IMAGE_HOSTS, BLOCKED_URL_HOSTS, COGNITION_LIMIT_DEFAULT, COGNITION_LIMIT_MAX, COGNITION_LIMIT_MIN, COGNITION_PURGE_BATCH, CONVICTION_TAGS, CONVICTION_TEXT_LIMIT, type ConsolidationVerdict, ConsolidationVerdictSchema, DEFAULT_MEDIA_COUNT, EMBEDDABLE_VIDEO_PROVIDER_CLAUSE, EMBEDDABLE_VIDEO_PROVIDER_LABELS, 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 EncyclopediaClassification, EncyclopediaClassifySchema, type EncyclopediaIngestTriage, type EncyclopediaIngestTriageDecision, EncyclopediaIngestTriageDecisionSchema, EncyclopediaIngestTriageSchema, type EncyclopediaSearchResult, type EncyclopediaSelectInput, type EncyclopediaSelectResult, type EncyclopediaSelectedChunk, type EncyclopediaSourceDocument, type ExtractedFact, ExtractedFactSchema, ExtractionSchema, FACT_KINDS, FACT_STABILITIES, HERO_VIDEO_TITLE_ISSUE, INSIGHTS_MAX_PER_TURN, INSIGHT_TAGS, INSIGHT_TEXT_LIMIT, MORE_MEDIA_COUNT, type MemoryClusterSummary, MemoryClusterSummarySchema, type MemoryCognitionProfile, type MemoryEnrichment, MemoryEnrichmentSchema, type MemoryExtraction, type MemoryProfileInsight, type MemoryProfileResponse, type MergedCognitionProfile, NON_PAGE_EXTENSIONS, type PruneProfileTopicOutcome, type ResearchFrictionQuery, type ResearchFrictionQueryDecision, ResearchFrictionQueryDecisionSchema, ResearchFrictionQuerySchema, type ResearchTriage, type ResearchTriageDecision, ResearchTriageDecisionSchema, ResearchTriageSchema, TAXONOMY_ICON_ALLOWLIST, type TaxonomyIconName, type TaxonomyPairVerdict, TaxonomyPairVerdictSchema, 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, pruneProfileTopic, referenceGalleryItemSchema, referenceLineSchema, relatedStorySchema, safeMediaUrl, safeMediaUrlOrEmpty, safeUrl, safeVideoUrl, safeVideoUrlOrEmpty, shoplistSchema, sourceSchema, stockmarketItemSchema, stockmarketListSchema, summarySchema, videoGalleryItemSchema, videolistSchema };
|
package/dist/schemas/index.mjs
CHANGED
|
@@ -72,14 +72,18 @@ var EncyclopediaClassifySchema = z.object({
|
|
|
72
72
|
/**
|
|
73
73
|
* One broad lowercase PLURAL family label for the document (e.g. `games`,
|
|
74
74
|
* `work`, `health`) — the constellation's CLUSTER tier. Never a specific
|
|
75
|
-
* entity, product, company, or title.
|
|
75
|
+
* entity, product, company, or title. Fiction/entertainment content takes
|
|
76
|
+
* the medium family (e.g. `shows`) — never an in-universe domain (`family`,
|
|
77
|
+
* `education`, `business` describe reality, not an invented life).
|
|
76
78
|
*/
|
|
77
79
|
category: z.string(),
|
|
78
80
|
/**
|
|
79
81
|
* One lowercase PLURAL sub-family label narrowing the category (e.g.
|
|
80
|
-
* `survival-games` under `games`) — the
|
|
81
|
-
* level below the cluster. Optional:
|
|
82
|
-
* a specific entity, product,
|
|
82
|
+
* `survival-games` under `games`, `tv-shows` under `shows`) — the
|
|
83
|
+
* constellation's COMMUNITY tier, one level below the cluster. Optional:
|
|
84
|
+
* omit when no sub-family applies. Never a specific entity, product,
|
|
85
|
+
* company, or title — a show/work title like `breaking-bad` is a topic or
|
|
86
|
+
* tag, never a community.
|
|
83
87
|
*/
|
|
84
88
|
community: z.string().optional(),
|
|
85
89
|
/**
|
|
@@ -523,6 +527,17 @@ var ConsolidationVerdictSchema = z.object({
|
|
|
523
527
|
),
|
|
524
528
|
mergedText: z.string().optional().describe("Required with verdict=merge: one fuller self-contained statement (full restatement, never a diff).")
|
|
525
529
|
});
|
|
530
|
+
var EncyclopediaIngestTriageDecisionSchema = z.object({
|
|
531
|
+
/** The candidate's index in the payload — echoed back so the worker maps the verdict to its item. */
|
|
532
|
+
index: z.number().int().min(0),
|
|
533
|
+
/** True = on-topic, persist; false = off-topic, strip. */
|
|
534
|
+
keep: z.boolean(),
|
|
535
|
+
/** One-sentence reason — logged for observability, never shown to users. */
|
|
536
|
+
reason: z.string()
|
|
537
|
+
});
|
|
538
|
+
var EncyclopediaIngestTriageSchema = z.object({
|
|
539
|
+
decisions: z.array(EncyclopediaIngestTriageDecisionSchema).max(150)
|
|
540
|
+
});
|
|
526
541
|
var MemoryEnrichmentSchema = z.object({
|
|
527
542
|
/**
|
|
528
543
|
* 2–6 stable, reusable lowercase topic labels for the record — the existing
|
|
@@ -558,15 +573,19 @@ var ExtractedFactSchema = z.object({
|
|
|
558
573
|
* One broad lowercase PLURAL family label for THIS fact (e.g. `stocks`,
|
|
559
574
|
* `pets`, `games`) — the constellation's CLUSTER tier. Inherits the
|
|
560
575
|
* turn-side category when omitted. Never
|
|
561
|
-
* a specific entity, product, company, or game title.
|
|
576
|
+
* a specific entity, product, company, or game title. Persona/roleplay or
|
|
577
|
+
* fictional content classifies by its real-world medium (a TV persona's
|
|
578
|
+
* biography belongs under `shows`), never by in-universe domains (`family`,
|
|
579
|
+
* `education`, `business` describe reality, not an invented life).
|
|
562
580
|
*/
|
|
563
581
|
category: z.string().optional(),
|
|
564
582
|
/**
|
|
565
583
|
* One lowercase PLURAL sub-family label narrowing THIS fact's category
|
|
566
|
-
* (e.g. `survival-games` under `games`) — the
|
|
567
|
-
* tier, one level below the cluster. Inherits the
|
|
568
|
-
* omitted; omit when no sub-family applies. Never
|
|
569
|
-
* product, or title
|
|
584
|
+
* (e.g. `survival-games` under `games`, `tv-shows` under `shows`) — the
|
|
585
|
+
* constellation's COMMUNITY tier, one level below the cluster. Inherits the
|
|
586
|
+
* turn-side community when omitted; omit when no sub-family applies. Never
|
|
587
|
+
* a specific entity, product, or title — a show/work title like
|
|
588
|
+
* `breaking-bad` is a tag or hub, never a community.
|
|
570
589
|
*/
|
|
571
590
|
community: z.string().optional(),
|
|
572
591
|
/** What kind of durable thing this is (see FACT_KINDS). */
|
|
@@ -595,17 +614,21 @@ var ExtractionSchema = z.object({
|
|
|
595
614
|
* the narrow tags into one topic family, powers the relink job's
|
|
596
615
|
* per-category passes, and backstops facts that omit their own `category`. Never a
|
|
597
616
|
* specific entity, product, company, or game title: `amd` belongs under
|
|
598
|
-
* `stocks`; `stellar blade` belongs under `games`.
|
|
617
|
+
* `stocks`; `stellar blade` belongs under `games`. Persona/roleplay or
|
|
618
|
+
* fictional content classifies by its real-world medium (e.g. `shows`
|
|
619
|
+
* for a TV persona), never by in-universe domains (`family`, `education`,
|
|
620
|
+
* `business` describe reality, not an invented life). Optional: a turn with
|
|
599
621
|
* nothing durable may omit it.
|
|
600
622
|
*/
|
|
601
623
|
category: z.string().optional(),
|
|
602
624
|
/**
|
|
603
625
|
* One lowercase PLURAL sub-family label narrowing the turn-side category
|
|
604
|
-
* (e.g. `survival-games` under `games`) — the
|
|
605
|
-
* tier: a genre, project family, or domain branch
|
|
606
|
-
* cluster. Backstops facts that omit their own
|
|
607
|
-
* omit it when no sub-family applies. Never a
|
|
608
|
-
* or title
|
|
626
|
+
* (e.g. `survival-games` under `games`, `tv-shows` under `shows`) — the
|
|
627
|
+
* constellation's COMMUNITY tier: a genre, project family, or domain branch
|
|
628
|
+
* one level below the cluster. Backstops facts that omit their own
|
|
629
|
+
* `community`. Optional: omit it when no sub-family applies. Never a
|
|
630
|
+
* specific entity, product, or title — a show/work title like
|
|
631
|
+
* `breaking-bad` is a tag or hub, never a community.
|
|
609
632
|
*/
|
|
610
633
|
community: z.string().optional()
|
|
611
634
|
});
|
|
@@ -1370,4 +1393,4 @@ var videolistSchema = z.object({
|
|
|
1370
1393
|
internationalCoverage: internationalCoverageSchema.optional()
|
|
1371
1394
|
});
|
|
1372
1395
|
|
|
1373
|
-
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_MEDIA_COUNT, DEFAULT_VARIANT_ID, EMBEDDABLE_VIDEO_PROVIDER_CLAUSE, EMBEDDABLE_VIDEO_PROVIDER_LABELS, ENCYCLOPEDIA_TOOL_NAMES, 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, EncyclopediaClassifySchema, ExtractedFactSchema, ExtractionSchema, FACT_KINDS, FACT_STABILITIES, HERO_VIDEO_TITLE_ISSUE, IMAGE_TASK_TEMPLATES, INSIGHTS_MAX_PER_TURN, INSIGHT_TAGS, INSIGHT_TEXT_LIMIT, IntentSchema, MEMORY_TOOL_NAMES, MORE_MEDIA_COUNT, MemoryClusterSummarySchema, MemoryEnrichmentSchema, NON_PAGE_EXTENSIONS, ResearchFrictionQueryDecisionSchema, ResearchFrictionQuerySchema, ResearchTriageDecisionSchema, ResearchTriageSchema, TAXONOMY_ICON_ALLOWLIST, TOOL_DESCRIPTIONS, TOOL_NAMES, TaxonomyPairVerdictSchema, VARIANT_NAMES, cardSchema, categorizeTools, clampCognitionLimit, clampEpisodeProbeLimit, clampEpisodeRecencyMidpoint, clampEpisodeRecencyScaleSeconds, clampEpisodeRecencyWeight, clampEpisodeScoreThreshold, compareSchema, createTextItemSchema, deriveSchemaKeys, describeSchema, discardedReferenceSchema, formatZodIssues, formatZodShape, galleryItemSchema, hasBlockedImageHost, heroVideoHasTitle, imagelistSchema, internationalCoverageSchema, isAllFieldsNullWipe, isImageTaskTemplate, isPrivateOrLocalhost, isTrustedImageUrl, isTrustedUrl, markerSchema, memoryProfileResponseSchema, mergeCognitionProfiles, normalizeInsightPath, ocrSchema, parseStoredProfile, productSchema, pruneProfileTopic, referenceGalleryItemSchema, referenceLineSchema, relatedStorySchema, safeMediaUrl, safeMediaUrlOrEmpty, safeUrl, safeVideoUrl, safeVideoUrlOrEmpty, shoplistSchema, sourceSchema, stockmarketItemSchema, stockmarketListSchema, summarySchema, videoGalleryItemSchema, videolistSchema };
|
|
1396
|
+
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_MEDIA_COUNT, DEFAULT_VARIANT_ID, EMBEDDABLE_VIDEO_PROVIDER_CLAUSE, EMBEDDABLE_VIDEO_PROVIDER_LABELS, ENCYCLOPEDIA_TOOL_NAMES, 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, EncyclopediaClassifySchema, EncyclopediaIngestTriageDecisionSchema, EncyclopediaIngestTriageSchema, ExtractedFactSchema, ExtractionSchema, FACT_KINDS, FACT_STABILITIES, HERO_VIDEO_TITLE_ISSUE, IMAGE_TASK_TEMPLATES, INSIGHTS_MAX_PER_TURN, INSIGHT_TAGS, INSIGHT_TEXT_LIMIT, IntentSchema, MEMORY_TOOL_NAMES, MORE_MEDIA_COUNT, MemoryClusterSummarySchema, MemoryEnrichmentSchema, NON_PAGE_EXTENSIONS, ResearchFrictionQueryDecisionSchema, ResearchFrictionQuerySchema, ResearchTriageDecisionSchema, ResearchTriageSchema, TAXONOMY_ICON_ALLOWLIST, TOOL_DESCRIPTIONS, TOOL_NAMES, TaxonomyPairVerdictSchema, VARIANT_NAMES, cardSchema, categorizeTools, clampCognitionLimit, clampEpisodeProbeLimit, clampEpisodeRecencyMidpoint, clampEpisodeRecencyScaleSeconds, clampEpisodeRecencyWeight, clampEpisodeScoreThreshold, compareSchema, createTextItemSchema, deriveSchemaKeys, describeSchema, discardedReferenceSchema, formatZodIssues, formatZodShape, galleryItemSchema, hasBlockedImageHost, heroVideoHasTitle, imagelistSchema, internationalCoverageSchema, isAllFieldsNullWipe, isImageTaskTemplate, isPrivateOrLocalhost, isTrustedImageUrl, isTrustedUrl, markerSchema, memoryProfileResponseSchema, mergeCognitionProfiles, normalizeInsightPath, ocrSchema, parseStoredProfile, productSchema, pruneProfileTopic, referenceGalleryItemSchema, referenceLineSchema, relatedStorySchema, safeMediaUrl, safeMediaUrlOrEmpty, safeUrl, safeVideoUrl, safeVideoUrlOrEmpty, shoplistSchema, sourceSchema, stockmarketItemSchema, stockmarketListSchema, summarySchema, videoGalleryItemSchema, videolistSchema };
|
package/dist/tools/index.mjs
CHANGED
|
@@ -1111,10 +1111,10 @@ ${lines.join("\n")}`;
|
|
|
1111
1111
|
var memoryPartitionRememberSchema = z.object({
|
|
1112
1112
|
text: z.string().min(1).max(2e3).describe('The fact to remember, as a self-contained statement, e.g. "Sams phone number is 555-1234".'),
|
|
1113
1113
|
category: z.string().min(1).max(40).optional().describe(
|
|
1114
|
-
'One broad lowercase PLURAL category the fact belongs to, e.g. "stocks", "games", "pets", "work" \u2014 the CLUSTER tier: a family noun, never a specific entity/product/company/game name ("amd" \u2192 "stocks"; "stellar blade" \u2192 "games"). Always include it.'
|
|
1114
|
+
'One broad lowercase PLURAL category the fact belongs to, e.g. "stocks", "games", "pets", "work" \u2014 the CLUSTER tier: a family noun, never a specific entity/product/company/game name ("amd" \u2192 "stocks"; "stellar blade" \u2192 "games"). Persona/roleplay or fictional content classifies by its real-world medium (a TV persona\u2019s biography \u2192 "shows"), never by in-universe domains ("family", "education", "business" describe reality, not an invented life). Always include it.'
|
|
1115
1115
|
),
|
|
1116
1116
|
community: z.string().min(1).max(60).optional().describe(
|
|
1117
|
-
'One lowercase PLURAL sub-family narrowing the category, e.g. "survival games" under "games" \u2014 the COMMUNITY tier, one level below the cluster (a genre, project family, or domain branch). Omit it when no sub-family applies; never a specific entity, product, or title.'
|
|
1117
|
+
'One lowercase PLURAL sub-family narrowing the category, e.g. "survival games" under "games", "tv shows" under "shows" \u2014 the COMMUNITY tier, one level below the cluster (a genre, project family, or domain branch). Omit it when no sub-family applies; never a specific entity, product, or title \u2014 a show/work title like "breaking-bad" is a tag or hub, never a community.'
|
|
1118
1118
|
),
|
|
1119
1119
|
subject: z.string().min(1).max(40).optional().describe(
|
|
1120
1120
|
'The lowercase SINGULAR entity the fact is about \u2014 the HUB tier, e.g. "project zomboid", "amd", "sam". Name it whenever the fact is about a specific entity; never a plural family label.'
|
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.28",
|
|
5
5
|
"packageManager": "pnpm@11.25.0",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@mozilla/readability": "^0.6.0",
|
|
58
|
-
"@triplef/helpers": "^1.5.
|
|
58
|
+
"@triplef/helpers": "^1.5.6",
|
|
59
59
|
"linkedom": "^0.18.13",
|
|
60
60
|
"turndown": "^7.2.4"
|
|
61
61
|
},
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"globals": "^17.12.0",
|
|
86
86
|
"husky": "^9.1.7",
|
|
87
87
|
"jiti": "^2.7.0",
|
|
88
|
-
"lint-staged": "^17.
|
|
88
|
+
"lint-staged": "^17.5.0",
|
|
89
89
|
"npm-check-updates": "^23.1.0",
|
|
90
90
|
"prettier": "^3.9.6",
|
|
91
91
|
"rimraf": "^6.1.3",
|