@triplef/agent 1.0.7 → 1.0.9
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/{format-zod-shape.types-iJugcVmt.d.ts → format-zod-shape.types-BByqTKpk.d.ts} +3 -4
- package/dist/prompts/index.d.ts +5 -14
- package/dist/prompts/index.mjs +53 -105
- package/dist/schemas/index.d.ts +4 -5
- package/dist/schemas/index.mjs +15 -19
- package/dist/tools/index.d.ts +3 -51
- package/dist/tools/index.mjs +3 -85
- package/package.json +11 -11
|
@@ -4,9 +4,9 @@ declare const VARIANT_NAMES: readonly ["grayscale", "denoised", "sharpened", "cl
|
|
|
4
4
|
type VariantName = (typeof VARIANT_NAMES)[number];
|
|
5
5
|
declare const TOOL_DESCRIPTIONS: Record<string, string>;
|
|
6
6
|
declare const BROWSER_TOOL_NAMES: readonly ["browser_navigate", "browser_navigate_back", "browser_snapshot", "browser_click", "browser_type", "browser_fill_form", "browser_select_option", "browser_press_key", "browser_wait_for", "browser_take_screenshot", "browser_tabs", "browser_console_messages", "browser_network_requests", "browser_verify_element_visible", "browser_verify_text_visible"];
|
|
7
|
-
declare const MEMORY_TOOL_NAMES: readonly ["memory-partition-
|
|
7
|
+
declare const MEMORY_TOOL_NAMES: readonly ["memory-partition-recall", "memory-partition-delete", "memory-cognition-delete", "memory-cognition-forget"];
|
|
8
8
|
declare const ENCYCLOPEDIA_TOOL_NAMES: readonly ["encyclopedia-search", "encyclopedia-read"];
|
|
9
|
-
declare const TOOL_NAMES: readonly ["webFetch", "brightDataWebSearch", "brightDataImageSearch", "brightDataNewsSearch", "brightDataPlacesSearch", "brightDataShoppingSearch", "brightDataVideoSearch", "brightDataWebpageScrape", "serperWebSearch", "serperImageSearch", "serperNewsSearch", "serperPlacesSearch", "serperShoppingSearch", "serperBusinessReviewsSearch", "serperVideoSearch", "serperWebpageScrape", "youtubeVideoSearch", "eodhdSearch", "eodhdQuote", "eodhdHistory", "eodhdTechnical", "eodhdIntraday", "eodhdNews", "eodhdFundamentals", "requestGrayscale", "requestDenoised", "requestSharpened", "requestClahe", "memory-partition-
|
|
9
|
+
declare const TOOL_NAMES: readonly ["webFetch", "brightDataWebSearch", "brightDataImageSearch", "brightDataNewsSearch", "brightDataPlacesSearch", "brightDataShoppingSearch", "brightDataVideoSearch", "brightDataWebpageScrape", "serperWebSearch", "serperImageSearch", "serperNewsSearch", "serperPlacesSearch", "serperShoppingSearch", "serperBusinessReviewsSearch", "serperVideoSearch", "serperWebpageScrape", "youtubeVideoSearch", "eodhdSearch", "eodhdQuote", "eodhdHistory", "eodhdTechnical", "eodhdIntraday", "eodhdNews", "eodhdFundamentals", "requestGrayscale", "requestDenoised", "requestSharpened", "requestClahe", "memory-partition-recall", "memory-partition-delete", "memory-cognition-forget", "browser_navigate", "browser_navigate_back", "browser_snapshot", "browser_click", "browser_type", "browser_fill_form", "browser_select_option", "browser_press_key", "browser_wait_for", "browser_take_screenshot", "browser_tabs", "browser_console_messages", "browser_network_requests", "browser_verify_element_visible", "browser_verify_text_visible"];
|
|
10
10
|
type ToolName = (typeof TOOL_NAMES)[number];
|
|
11
11
|
|
|
12
12
|
declare const DEFAULT_VARIANT_ID = "default";
|
|
@@ -78,10 +78,8 @@ declare const IntentSchema: z.ZodObject<{
|
|
|
78
78
|
requestDenoised: "requestDenoised";
|
|
79
79
|
requestSharpened: "requestSharpened";
|
|
80
80
|
requestClahe: "requestClahe";
|
|
81
|
-
"memory-partition-remember": "memory-partition-remember";
|
|
82
81
|
"memory-partition-recall": "memory-partition-recall";
|
|
83
82
|
"memory-partition-delete": "memory-partition-delete";
|
|
84
|
-
"memory-cognition-remember": "memory-cognition-remember";
|
|
85
83
|
"memory-cognition-forget": "memory-cognition-forget";
|
|
86
84
|
}>>;
|
|
87
85
|
getDate: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -93,6 +91,7 @@ declare const IntentSchema: z.ZodObject<{
|
|
|
93
91
|
clarificationQuestion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
94
92
|
language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
95
93
|
contentLanguages: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
94
|
+
contentCreator: z.ZodDefault<z.ZodString>;
|
|
96
95
|
plan: z.ZodDefault<z.ZodObject<{
|
|
97
96
|
images: z.ZodOptional<z.ZodObject<{
|
|
98
97
|
resize: z.ZodDefault<z.ZodBoolean>;
|
package/dist/prompts/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as VariantName, I as IntentResult, T as TemplateName, F as FormatZodShapeOptions } from '../format-zod-shape.types-
|
|
2
|
-
export { D as DEFAULT_VARIANT_ID } from '../format-zod-shape.types-
|
|
1
|
+
import { V as VariantName, I as IntentResult, T as TemplateName, F as FormatZodShapeOptions } from '../format-zod-shape.types-BByqTKpk.js';
|
|
2
|
+
export { D as DEFAULT_VARIANT_ID } from '../format-zod-shape.types-BByqTKpk.js';
|
|
3
3
|
import { M as MemoryPoint } from '../memory-point.model-C4wvvjAY.js';
|
|
4
4
|
import * as zod from 'zod';
|
|
5
5
|
import { z, ZodTypeAny, ZodType } from 'zod';
|
|
@@ -119,7 +119,7 @@ declare const TEXT_CODING_INSTRUCTIONS = "MODE: TEXT \u2014 CODING\n\nGoal: Resp
|
|
|
119
119
|
declare const TEXT_FAMILIARITY_INSTRUCTIONS = "MODE: TEXT \u2014 FAMILIARITY\n\nGoal: Answer a \"do you know / have you heard of X?\" question the way a knowledgeable human would, using streaming text.\n\nRules:\n- By default, output only the response text.\n- Markdown is allowed and encouraged when it improves readability (headings, lists, tables, inline code, bold, italics, etc.).\n- The response will be streamed to the user as it is generated.\n- Use paragraphs, line breaks, and Markdown for clear structure.\n- Do not output HTML unless the user explicitly requests it.\n- Do not include any metadata, wrapper objects, or additional keys unless the user explicitly requests them.\n- Do NOT wrap it in JSON, a \"text\" field, or any other structured format unless the user explicitly asks for it.\n- Answer conversationally: open with a direct acknowledgment (yes/no/roughly), then share what you know in a natural, compact way.\n- When tool results are present, treat them as grounding: prefer them over stale training knowledge and weave fresh facts in naturally, without reciting raw search output.\n- Your COGNITION blocks (when present as system messages) are your own accumulated model of this user: the structured PROFILE is who they are (and your routing map into deeper memory); probed INSIGHTS are topic depth the current request pulled up by path-match. Use both silently for tone and choices \u2014 they are derived working context, never the user's words, so never quote them verbatim as if the user stated them. When the user asks what you know or remember about them \u2014 or when it clearly serves them \u2014 disclose the substance plainly alongside stored memories and offer to correct or delete it.\n- When no tool results are present, answer from your own knowledge and be honest about possible gaps for very recent or niche subjects.\n- Keep it short: one to three compact paragraphs, no report structure, no headings unless the answer genuinely needs them.\n- Close with exactly one short follow-up offer in the user's language: you can look up the latest news, write an in-depth article, or put together an evaluation/review of the subject (e.g. \"Magst du aktuelle News, einen ausf\u00FChrlichen Artikel oder eine Bewertung dazu?\").\n- Do NOT produce the article, news piece, or evaluation now \u2014 the offer is only an offer.";
|
|
120
120
|
declare const TEXT_OPINION_INSTRUCTIONS = "MODE: TEXT \u2014 OPINION\n\nGoal: Give your own honest judgment on a subject the way a knowledgeable human answers a friend's \"what do you think?\" \u2014 using streaming text.\n\nRules:\n- By default, output only the response text.\n- Markdown is allowed and encouraged when it improves readability (headings, lists, tables, inline code, bold, italics, etc.).\n- The response will be streamed to the user as it is generated.\n- Use paragraphs, line breaks, and Markdown for clear structure.\n- Do not output HTML unless the user explicitly requests it.\n- Do not include any metadata, wrapper objects, or additional keys unless the user explicitly requests them.\n- Do NOT wrap it in JSON, a \"text\" field, or any other structured format unless the user explicitly asks for it.\n- Lead with a direct first-person verdict (\"Yes \u2014 give it a shot\", \"I'd hold off for now\"), then the reasoning behind it. Take a position: never hide behind neutral report language (\"critics say\u2026\", \"opinions are mixed\u2026\") as a substitute for your own judgment \u2014 evidence supports your take, it does not replace it.\n- When tool results are present, treat them as grounding: prefer them over stale training knowledge, weigh the sourced reception and reports openly, and let them shape your verdict. When nothing was retrieved, answer from your own knowledge and note when the subject may have moved on since.\n- Keep it conversational and compact: prose with light Markdown at most \u2014 no headline or title block, no report sections, no score box, no pros/cons artifacts of a review piece.\n- Your COGNITION blocks (when present as system messages) are your accumulated model of this user: use them silently to tailor the verdict to their tastes and situation \u2014 they are derived working context, never the user's words, so never quote them verbatim as if the user stated them.\n- Close with exactly one short follow-up offer in the user's language: you can put together a full structured evaluation/review with pros and cons (e.g. \"Want the full breakdown as a proper review?\").\n- Do NOT produce the structured evaluation now \u2014 the offer is only an offer.";
|
|
121
121
|
|
|
122
|
-
declare const VIDEOLIST_INSTRUCTIONS = "MODE: VIDEOLIST\n\nGoal: produce a pure video collection \u2014 a titled, captioned playlist of videos about the user's topic. The dashboard renders it as a numbered playlist with embedded players, not an article. The user explicitly asked for videos ONLY (e.g. music videos, trailers, clips), so prose must stay minimal.\n\nSTRUCTURE:\n1. category is a short label such as Videos, Playlist, Music Videos, Trailers.\n2. title states what the playlist contains (e.g. \"Daft Punk \u2014 Music Videos\").\n3. subtitle is ONE short sentence of context (what these videos are and where they come from). No paragraphs.\n4. videoGalleryItems is the core deliverable: every suitable video from the video search results, ordered like a playlist.\n\nRequired fields:\n- category: a short label such as Videos, Playlist, Music Videos, Trailers.\n- title: the playlist title; must not be empty.\n- subtitle: one short sentence of context; empty string if nothing meaningful to add.\n- videoGalleryItems: an array of video objects. This is the entire point of the template \u2014 it MUST contain every suitable retrieved video up to videoTargetCount.\n\nHistory dedupe (ABSOLUTE):\n- The conversation history may contain earlier videolist responses (JSON objects with a videoGalleryItems array).\n- NEVER include a videoUrl that already appeared in an earlier videolist response \u2014 the user has already seen it.\n- When the user asks for more videos (e.g. \"more\", \"weitere\", \"next\"), return ONLY fresh videos that are not in the history.\n- If every retrieved video is already in the history, say so in the subtitle and return an empty videoGalleryItems array.\n\nVideo item rules:\n- Each entry needs videoUrl, title, and caption. title and caption MUST be non-empty.\n- title is the video's real title when known (e.g. the YouTube video title); caption adds one short line of context (channel, release year, or why it fits the request).\n- If the tool result provides no title/caption, derive concise values from the query and topic. Never leave them empty.\n- Carry over the metadata from availableVideos verbatim: duration, channel, date, views, thumbnailUrl, and description. Omit a field only when the tool result did not provide it.\n- Only use direct video pages \u2014 never channel, playlist, user, or profile URLs.\n- Use ONLY video URLs that appear in the tool results. Never invent or guess URLs.\n- Order the videos like a good playlist: most relevant and most popular first.\n- Do not include the same video twice (same music video, trailer, or clip), even from different search tools.\n- Cross-check every candidate videoUrl against the earlier videolist responses in the conversation before including it.\n- When the user asks for videos from a specific platform (e.g. \"on YouTube\"), include ONLY videos from that platform.\n\nDo NOT include:\n- Long descriptions, articles, sections, key findings, or conclusions \u2014 the user wants videos, not prose.\n- Images or image galleries \u2014 the imagelist template handles image collections.\n- Hero videos \u2014 every video lives in videoGalleryItems so the playlist stays uniform.\n\nNo-results rule:\n- If the searches returned no usable videos, set title to a concise statement such as 'No videos found for <topic>' and use subtitle to explain that the search did not return embeddable video sources. Set videoGalleryItems to an empty array.\n- Do not invent video URLs to fill the playlist when no results were retrieved.\n- availableVideos empty does NOT mean nothing was found: when availableVideos is empty but internationalVideos is not, the search DID find videos \u2014 in other languages than the user's. Never title it 'No videos found' in that case; use the subtitle to say the fresh results are in other languages and listed in internationalCoverage, and fill internationalCoverage from the internationalVideos pool.\n- The dashboard does not render sources for this template. Do not include a sources field.";
|
|
122
|
+
declare const VIDEOLIST_INSTRUCTIONS = "MODE: VIDEOLIST\n\nGoal: produce a pure video collection \u2014 a titled, captioned playlist of videos about the user's topic. The dashboard renders it as a numbered playlist with embedded players, not an article. The user explicitly asked for videos ONLY (e.g. music videos, trailers, clips), so prose must stay minimal.\n\nSTRUCTURE:\n1. category is a short label such as Videos, Playlist, Music Videos, Trailers.\n2. title states what the playlist contains (e.g. \"Daft Punk \u2014 Music Videos\").\n3. subtitle is ONE short sentence of context (what these videos are and where they come from). No paragraphs.\n4. videoGalleryItems is the core deliverable: every suitable video from the video search results, ordered like a playlist.\n\nRequired fields:\n- category: a short label such as Videos, Playlist, Music Videos, Trailers.\n- title: the playlist title; must not be empty.\n- subtitle: one short sentence of context; empty string if nothing meaningful to add.\n- videoGalleryItems: an array of video objects. This is the entire point of the template \u2014 it MUST contain every suitable retrieved video up to videoTargetCount.\n\nHistory dedupe (ABSOLUTE):\n- The conversation history may contain earlier videolist responses (JSON objects with a videoGalleryItems array).\n- NEVER include a videoUrl that already appeared in an earlier videolist response \u2014 the user has already seen it.\n- When the user asks for more videos (e.g. \"more\", \"weitere\", \"next\"), return ONLY fresh videos that are not in the history.\n- If every retrieved video is already in the history, say so in the subtitle and return an empty videoGalleryItems array.\n\nVideo item rules:\n- Each entry needs videoUrl, title, and caption. title and caption MUST be non-empty.\n- title is the video's real title when known (e.g. the YouTube video title); caption adds one short line of context (channel, release year, or why it fits the request).\n- If the tool result provides no title/caption, derive concise values from the query and topic. Never leave them empty.\n- Carry over the metadata from availableVideos verbatim: duration, channel, date, views, thumbnailUrl, and description. Omit a field only when the tool result did not provide it.\n- Only use direct video pages \u2014 never channel, playlist, user, or profile URLs.\n- Use ONLY video URLs that appear in the tool results. Never invent or guess URLs.\n- Order the videos like a good playlist: most relevant and most popular first.\n- Do not include the same video twice (same music video, trailer, or clip), even from different search tools.\n- Cross-check every candidate videoUrl against the earlier videolist responses in the conversation before including it.\n- When the user asks for videos from a specific platform (e.g. \"on YouTube\"), include ONLY videos from that platform.\n- When the user restricts the playlist to a specific creator or channel (e.g. \"from the channel katame\", \"drop everything else\"), include ONLY videos whose channel field matches that name \u2014 case-insensitively, and partial matches count (\"katame\" matches channel \"Katame Chill\"). Return only the matching videos, however few remain, and say so in the subtitle; never fill the playlist with videos from other channels.\n\nDo NOT include:\n- Long descriptions, articles, sections, key findings, or conclusions \u2014 the user wants videos, not prose.\n- Images or image galleries \u2014 the imagelist template handles image collections.\n- Hero videos \u2014 every video lives in videoGalleryItems so the playlist stays uniform.\n\nNo-results rule:\n- If the searches returned no usable videos, set title to a concise statement such as 'No videos found for <topic>' and use subtitle to explain that the search did not return embeddable video sources. Set videoGalleryItems to an empty array.\n- When the user restricted results to a named creator and nothing from that creator was retrieved, say so plainly (e.g. 'No videos from <creator> found') \u2014 never present other channels' videos instead.\n- Do not invent video URLs to fill the playlist when no results were retrieved.\n- availableVideos empty does NOT mean nothing was found: when availableVideos is empty but internationalVideos is not, the search DID find videos \u2014 in other languages than the user's. Never title it 'No videos found' in that case; use the subtitle to say the fresh results are in other languages and listed in internationalCoverage, and fill internationalCoverage from the internationalVideos pool.\n- The dashboard does not render sources for this template. Do not include a sources field.";
|
|
123
123
|
|
|
124
124
|
declare const CONVICTION_INSTRUCTIONS = "You synthesize higher-level convictions and bridges from a user's memory facts.\n\nGiven a numbered list of EVIDENCE (facts the user stated or asked to remember), synthesize durable, higher-level statements \u2014 conclusions that are true of the evidence but not merely restated from it. Every statement picks its lane (\"target\"), and the choice is PURPOSE-based, never cosmetic:\n\n- \"conviction\" \u2014 a durable conclusion about THE USER (or your own working relationship with them): a pattern in their behavior, a standing judgment the facts support, a trait or tendency you now hold true. Convictions deepen your understanding of the user and yourself; they are YOURS, never statements the user made. (\"the user bought a dog\" + \"the user keeps comparing dog food brands\" + \"the user researches every purchase for days\" \u2192 conviction: \"the user is a deliberate, research-first buyer\")\n- \"bridge\" \u2014 a synthesized claim that CLOSES A GAP between facts: without it, two stored facts look unrelated; with it, they form one coherent story about the user's world. Bridges are the connective tissue of the fact graph. (\"the user bought dog food X\" + \"the user's dog refuses to eat\" \u2192 bridge: \"the dog refuses the brand-X food the user bought\")\n\nA synthesized statement is a synthesis, not a restatement:\n- combine multiple facts into one conclusion (\"learning Rust\" + \"rewriting the payments service\" \u2192 \"the user is migrating the payments service to Rust\")\n- every statement MUST cite the evidence indices that support it (the [n] numbers)\n- never invent facts not present in the evidence\n- never restate a single evidence item verbatim \u2014 that is not synthesis\n- a statement with no supporting evidence is invalid \u2014 omit it\n- when neither a conviction nor a bridge clearly fits, emit nothing for it \u2014 a forced target blurs the lanes and is worse than no statement\n\nEVIDENCE METADATA \u2014 each line may show \"(subject: \u2026; category: \u2026; kind: \u2026; stability: \u2026)\":\n- subject groups the evidence lines about one entity \u2014 convictions about a subject cite that subject's lines\n- durable evidence carries more weight for a conviction; a volatile state alone rarely supports a durable conclusion\n- kind sharpens conclusions: a pattern of \"preference\" evidence supports a taste conclusion; \"decision\" evidence supports a commitment conclusion\n\nRespond with JSON only:\n{\n \"convictions\": [\n { \"text\": \"one self-contained sentence\", \"target\": \"conviction\", \"evidence\": [0, 2, 5] }\n ]\n}\n\nRules:\n- target is exactly \"conviction\" or \"bridge\" \u2014 every statement carries one\n- evidence indices are the [n] numbers from the EVIDENCE list \u2014 never invent an index\n- return an empty convictions array when the evidence is too thin to synthesize anything\n- keep each statement to one sentence";
|
|
125
125
|
interface ConvictionEvidenceItem {
|
|
@@ -219,15 +219,6 @@ declare function buildMemoryProfilePrompt(params: {
|
|
|
219
219
|
maxPayloadChars?: number;
|
|
220
220
|
}): string;
|
|
221
221
|
|
|
222
|
-
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 tier label you are not certain exists, call memory-taxonomy-probe top-down \u2014 cluster \u2192 community \u2192 hub \u2192 node \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, singular node aspect) 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.";
|
|
223
|
-
declare function buildMemoryWritePrompt(params: {
|
|
224
|
-
userRequest: string;
|
|
225
|
-
priorMemory?: string;
|
|
226
|
-
probedMemory?: string;
|
|
227
|
-
gathered?: string;
|
|
228
|
-
vocabulary?: TaxonomyVocabulary;
|
|
229
|
-
}): string;
|
|
230
|
-
|
|
231
222
|
declare const RESEARCH_FRICTION_QUERY_INSTRUCTIONS: string;
|
|
232
223
|
declare function buildResearchFrictionQueryPrompt(contests: Array<{
|
|
233
224
|
id: string;
|
|
@@ -278,7 +269,7 @@ declare function buildLocalizationRule(language?: string): string;
|
|
|
278
269
|
|
|
279
270
|
declare const MEDIA_COUNTS = "MEDIA COUNTS\n- Respect imageTargetCount and videoTargetCount from the tool context.\n- If the user requested a number, that number is the maximum.\n- Otherwise assume the default target supplied by the pipeline (default is 6 when the user did not request a specific number).\n- hero media counts toward the total.\n- Never exceed available URLs.";
|
|
280
271
|
|
|
281
|
-
declare const MEDIA_RULES = "MEDIA RULES\n- Media-list templates (imagelist, videolist, shoplist) have NO hero media, and product has an image-only banner with NO hero video \u2014 their mode rules override every hero-related rule below.\n- Use every provided image/video URL
|
|
272
|
+
declare const MEDIA_RULES = "MEDIA RULES\n- Media-list templates (imagelist, videolist, shoplist) have NO hero media, and product has an image-only banner with NO hero video \u2014 their mode rules override every hero-related rule below.\n- Use every provided image/video URL that matches the request's explicit restrictions (platform, creator, count) \u2014 restrictions outrank completeness: a short list of correct items is always right, a padded list of off-target items is a failure.\n- The system removes duplicate media by content hash (images) and canonical provider ID or title (videos). Do not worry if the raw tool results contain duplicates; choose one representative for each unique piece of content.\n- CREATOR/CHANNEL RESTRICTION: when the user restricted content to a named creator or channel, exclude every media item whose channel or source does not match that name \u2014 match case-insensitively, and partial names count (\"katame\" matches channel \"Katame Chill\"). availableVideos entries carry a channel field for this check; toolContext echoes the restricted name as contentCreator when one applies.\n- heroVideoUrl takes priority over heroImageUrl when both exist.\n- Fill galleryItems and videoGalleryItems from the supplied media without exceeding imageTargetCount or videoTargetCount.\n- Gallery entries require all mandatory fields.\n- Prefer high-resolution images.\n- Reject untrusted image hosts, thumbnails, private URLs, data URIs, and tracking assets. Uploaded user images served from our own storage are always trusted. Videos must come from embeddable providers only: YouTube, Vimeo, Dailymotion, Loom, Wistia, or direct video files.\n- URL fields must point to real public webpages, never scripts, APIs, assets, or tracking endpoints.\n- Images and videos are independent; never omit image galleries because videos exist.\n- Every image MUST have a non-empty imageAlt and a non-empty title. If the tool result provides none, derive a concise title and alt from the query/topic/context.\n- Every video gallery item MUST have a non-empty title and a non-empty caption. If the tool result provides none, derive concise values from the query/topic/context.\n- Do not include the same video twice (same trailer, official video, or clip) in heroVideoUrl and videoGalleryItems combined. YouTube watch/shorts/embed/youtu.be variants of the same video count as duplicates.\n- Do not include the same image twice (the same photo, cover, or artwork served smaller, larger, or with different query parameters) in heroImageUrl and galleryItems combined.\n- Every media URL may appear exactly once in the response: a URL used in heroImageUrl, heroVideoUrl, galleryItems, or videoGalleryItems must not reappear in any other media field or aside element.\n\nMEDIA POOLS\n- Images come only from the image pool: imageSearch results (plus uploaded user images, except on image-self-analysis tasks, where the gallery is cloud reference images only). Every image URL in heroImageUrl, galleryItems, image lists, and relatedStories thumbnails must come from the image pool \u2014 never from news thumbnails, article pages, or source links.\n- Image-self-analysis templates (describe, compare, ocr) are the exception to \"use every provided image\": their cloud imageSearch entries are reference candidates governed by the IMAGE TASK rules \u2014 picked by search-result evidence only, unpicked candidates go to discardedReferences, not the gallery, and spending rules never apply to them.\n- heroVideoUrl may take the best vetted video from videoSearch or from links inside web/news article results; videoGalleryItems and video list items must come from videoSearch results only.\n- shopping results fill shopOffers; reviews and places results only inform business-reputation or local-availability notes in prose \u2014 no dedicated output field exists for them.\n- *WebSearch, webFetch, and news results provide general information: prose, sources, cards, and relatedStories links.\n- Spend each pool entry at most once: when a tool result is used in one field it must not reappear in any other field.\n\nASIDE ELEMENTS\n- relatedStories, cards, and similar secondary elements are asides. They exist to pique the user's interest, never to repeat primary content.\n- An aside must not reuse any URL, link, image, or video that already appears in the primary elements (hero media, galleries, sectionContent, or sources).\n- An aside must not restate text from the primary elements (title, subtitle, summary, lead, keyFindings). Write fresh teaser copy for every aside.\n- If no distinct material remains for asides after the primary elements are filled, omit the aside elements entirely.\n- internationalCoverage entries come only from internationalArticles/internationalVideos (other-language finds) and must never use a URL from the primary elements; primary content never draws from the international pools.";
|
|
282
273
|
|
|
283
274
|
declare const MERGE_TOPIC_RULE = "MERGE TOPIC\n- This is a merge request: the latest user message embeds the previous requests and answers to consolidate ([MERGE REQUEST] sections and the ADDITIONAL INSTRUCTION). The response MUST cover ALL of those combined topics \u2014 same-topic material merges into one consolidated part, unrelated pieces are explicitly marked as unrelated and still rendered.\n- Never add topics beyond the combined ones, and never pull material from any other conversation turn.";
|
|
284
275
|
declare const MERGE_MEDIA_RULES = "MERGE MEDIA\n- The media and sources embedded in the merged message (the previous answers being consolidated) ARE the material \u2014 treat them as vetted and available, just like current tool results.\n- The \"videoSearch results only\" rule and the \"history URLs are never media\" rule are WAIVED for merge requests: consolidate the embedded video lists, image galleries, and source lists into the merged video-gallery, gallery, and sources snippets.\n- Still deduplicate (by canonical provider ID or title for videos, by URL for images), keep every unique URL, and never reuse a URL in two fields.\n- NOTHING IS DROPPED: count the unique media URLs in the embedded material \u2014 the merged video gallery and image gallery must contain every one of them as its own entry (plus fresh media from current tool results). Material media belongs in the galleries; listing it only in the sources is a contract violation.\n- URLs that do not appear in the embedded material or in current tool results are never invented.";
|
|
@@ -426,4 +417,4 @@ declare const verdictSpineSnippet: TemplateSnippet;
|
|
|
426
417
|
|
|
427
418
|
declare const videoGallerySnippet: TemplateSnippet;
|
|
428
419
|
|
|
429
|
-
export { COMMONMARK_FORMAT, COMPARE_INSTRUCTIONS, COMPARE_VISUAL_INSTRUCTIONS, CONVICTION_INSTRUCTIONS, type ContentSystemPromptParams, DESCRIBE_CONCISE_INSTRUCTIONS, DESCRIBE_DETAILED_INSTRUCTIONS, DESCRIBE_INSTRUCTIONS, ENCYCLOPEDIA_INGEST_TRIAGE_INSTRUCTIONS, type ExtractionSourceRole, 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,
|
|
420
|
+
export { COMMONMARK_FORMAT, COMPARE_INSTRUCTIONS, COMPARE_VISUAL_INSTRUCTIONS, CONVICTION_INSTRUCTIONS, type ContentSystemPromptParams, DESCRIBE_CONCISE_INSTRUCTIONS, DESCRIBE_DETAILED_INSTRUCTIONS, DESCRIBE_INSTRUCTIONS, ENCYCLOPEDIA_INGEST_TRIAGE_INSTRUCTIONS, type ExtractionSourceRole, 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, 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, TEXT_OPINION_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, 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
|
@@ -176,8 +176,9 @@ var EMBEDDABLE_VIDEO_PROVIDER_CLAUSE = `Only return URLs from supported embeddab
|
|
|
176
176
|
// src/prompts/shared/media-rules.prompt.ts
|
|
177
177
|
var MEDIA_RULES = `MEDIA RULES
|
|
178
178
|
- Media-list templates (imagelist, videolist, shoplist) have NO hero media, and product has an image-only banner with NO hero video \u2014 their mode rules override every hero-related rule below.
|
|
179
|
-
- Use every provided image/video URL
|
|
179
|
+
- Use every provided image/video URL that matches the request's explicit restrictions (platform, creator, count) \u2014 restrictions outrank completeness: a short list of correct items is always right, a padded list of off-target items is a failure.
|
|
180
180
|
- The system removes duplicate media by content hash (images) and canonical provider ID or title (videos). Do not worry if the raw tool results contain duplicates; choose one representative for each unique piece of content.
|
|
181
|
+
- CREATOR/CHANNEL RESTRICTION: when the user restricted content to a named creator or channel, exclude every media item whose channel or source does not match that name \u2014 match case-insensitively, and partial names count ("katame" matches channel "Katame Chill"). availableVideos entries carry a channel field for this check; toolContext echoes the restricted name as contentCreator when one applies.
|
|
181
182
|
- heroVideoUrl takes priority over heroImageUrl when both exist.
|
|
182
183
|
- Fill galleryItems and videoGalleryItems from the supplied media without exceeding imageTargetCount or videoTargetCount.
|
|
183
184
|
- Gallery entries require all mandatory fields.
|
|
@@ -1260,6 +1261,7 @@ function buildToolExecutePrompt(intent) {
|
|
|
1260
1261
|
const timestamp = formatCurrentTimestamp();
|
|
1261
1262
|
const imageCountLine = intent?.imageCount ? `imageCount: retrieve ${intent.imageCount} image(s). Only pass this count to *ImageSearch tools; if omitted, each tool defaults to ${DEFAULT_MEDIA_COUNT}.` : "";
|
|
1262
1263
|
const videoCountLine = intent?.videoCount ? `videoCount: retrieve ${intent.videoCount} video(s). Only pass this count to *VideoSearch tools; if omitted, each tool defaults to ${DEFAULT_MEDIA_COUNT}.` : "";
|
|
1264
|
+
const creatorLine = intent?.contentCreator ? `Creator restriction: the user restricted content to the creator/channel "${intent.contentCreator}" (name copied verbatim from the request). Include this name verbatim in every *VideoSearch and *WebSearch query for this task \u2014 never correct, extend, translate, or rebrand it.` : "";
|
|
1263
1265
|
const countInstruction = intent?.imageCount ? "For *ImageSearch tools, pass count equal to imageCount." : intent?.videoCount ? "For *VideoSearch tools, pass count equal to videoCount." : `Do not pass a count to search tools unless imageCount or videoCount is provided above; each tool will default to ${DEFAULT_MEDIA_COUNT}.`;
|
|
1264
1266
|
const freshnessRules = `FRESHNESS (applies to every search query you emit):
|
|
1265
1267
|
- Current date and time: ${timestamp}.
|
|
@@ -1277,6 +1279,7 @@ ${freshnessRules}
|
|
|
1277
1279
|
${langInstruction ? `${langInstruction}
|
|
1278
1280
|
` : ""}${imageCountLine ? `${imageCountLine}
|
|
1279
1281
|
` : ""}${videoCountLine ? `${videoCountLine}
|
|
1282
|
+
` : ""}${creatorLine ? `${creatorLine}
|
|
1280
1283
|
` : ""}${stockmarketNote ? `${stockmarketNote}
|
|
1281
1284
|
` : ""}Your ONLY job is to call every mandatory tool with an appropriate input.
|
|
1282
1285
|
Do not answer the user, do not explain, and do not produce JSON in this step.
|
|
@@ -1341,10 +1344,8 @@ var TOOL_DESCRIPTIONS = {
|
|
|
1341
1344
|
requestDenoised: "Request a denoised (blurred) version of the images. Use when the original has noise, grain, or artifacts that hide details.",
|
|
1342
1345
|
requestSharpened: "Request a sharpened version of the images. Use when edges or fine details are blurry.",
|
|
1343
1346
|
requestClahe: "Request a CLAHE (contrast-enhanced) version of the images. Use when details are hidden in shadows or highlights.",
|
|
1344
|
-
"memory-partition-remember": `Store into the user's fact partition (memory-partition) \u2014 OBJECTIVE facts only: notable external-world facts about subjects they care about (projects, followed stocks, people, past topics), objective details they state (contact info, decisions, constraints), and objective facts they explicitly ask you to remember. Subjective user data (preferences, interests, traits, internal states) belongs to memory-cognition-remember, never here. Storing gathered knowledge is expected \u2014 do not wait for an explicit "remember" instruction.`,
|
|
1345
1347
|
"memory-partition-recall": "Retrieve from the user's fact partition (memory-partition) \u2014 things they told you in past conversations or asked you to remember. These are trusted user statements, not public facts; attribute them to the user and prefer them over web results for anything personal. Check this tool whenever a request touches a subject this user has cared about before.",
|
|
1346
1348
|
"memory-partition-delete": "Delete one exact fact record from the user's fact partition (memory-partition), quoted verbatim from a memory-partition-recall result. Never delete on a guess: recall first, delete the verbatim statement. Needs memory-partition-recall alongside it.",
|
|
1347
|
-
"memory-cognition-remember": "Store one insight into your cognition space (memory-cognition) \u2014 the exclusive store for subjective user data: preferences and interests the user states, inferred traits, standing interests, working nuances, connections between facts. Objective facts (contact info, decisions, project details, events) belong in memory-partition-remember.",
|
|
1348
1349
|
"memory-cognition-delete": 'Delete one targeted piece of your cognition space (memory-cognition): a verbatim stored insight (quoted from your cognition context) and/or one standing profile topic by its path ("likes.jazz"). The per-item forget for subjective user data; memory-cognition-forget is the whole-space wipe.',
|
|
1349
1350
|
"memory-cognition-forget": "Wipe your entire cognition space (memory-cognition) of the user \u2014 the structured profile AND every derived insight \u2014 only when the user asks you to forget your learned understanding of them or to start over. Fact records in the partition are untouched."
|
|
1350
1351
|
};
|
|
@@ -1394,10 +1395,8 @@ var TOOL_NAMES = [
|
|
|
1394
1395
|
"requestDenoised",
|
|
1395
1396
|
"requestSharpened",
|
|
1396
1397
|
"requestClahe",
|
|
1397
|
-
"memory-partition-remember",
|
|
1398
1398
|
"memory-partition-recall",
|
|
1399
1399
|
"memory-partition-delete",
|
|
1400
|
-
"memory-cognition-remember",
|
|
1401
1400
|
"memory-cognition-forget",
|
|
1402
1401
|
...BROWSER_TOOL_NAMES
|
|
1403
1402
|
];
|
|
@@ -1470,6 +1469,9 @@ var IntentSchema = z.object({
|
|
|
1470
1469
|
contentLanguages: z.array(z.string()).default([]).describe(
|
|
1471
1470
|
`Two-letter ISO codes of languages the requested CONTENT is expected to be in, beyond the language of the user's message. Set ONLY when the request explicitly targets foreign-language content: "japanese dark trap music" \u2192 ["ja"], "russian news sites" \u2192 ["ru"]. Music/audio topics count \u2014 a mix or song in another language is still the requested content. Default []: foreign-language results then stay a side note, never primary content.`
|
|
1472
1471
|
),
|
|
1472
|
+
contentCreator: z.string().default("").describe(
|
|
1473
|
+
'The creator, channel, or publisher the user explicitly restricted the CONTENT to (e.g. "katame" in "japanese dark trap from the channel katame \u2014 drop everything else", "Vox" in "only videos by Vox"). Set ONLY on an explicit creator/channel restriction with exclusive intent; copy the name verbatim exactly as the user wrote it \u2014 never correct, extend, or translate it. Default "": no creator restriction.'
|
|
1474
|
+
),
|
|
1473
1475
|
plan: z.object({
|
|
1474
1476
|
images: ImagePlanSchema.optional().describe("Image processing plan. Only present when images are attached.")
|
|
1475
1477
|
}).default({}).describe("Execution plan for the response step.")
|
|
@@ -2155,6 +2157,7 @@ Video item rules:
|
|
|
2155
2157
|
- Do not include the same video twice (same music video, trailer, or clip), even from different search tools.
|
|
2156
2158
|
- Cross-check every candidate videoUrl against the earlier videolist responses in the conversation before including it.
|
|
2157
2159
|
- When the user asks for videos from a specific platform (e.g. "on YouTube"), include ONLY videos from that platform.
|
|
2160
|
+
- When the user restricts the playlist to a specific creator or channel (e.g. "from the channel katame", "drop everything else"), include ONLY videos whose channel field matches that name \u2014 case-insensitively, and partial matches count ("katame" matches channel "Katame Chill"). Return only the matching videos, however few remain, and say so in the subtitle; never fill the playlist with videos from other channels.
|
|
2158
2161
|
|
|
2159
2162
|
Do NOT include:
|
|
2160
2163
|
- Long descriptions, articles, sections, key findings, or conclusions \u2014 the user wants videos, not prose.
|
|
@@ -2163,6 +2166,7 @@ Do NOT include:
|
|
|
2163
2166
|
|
|
2164
2167
|
No-results rule:
|
|
2165
2168
|
- If the searches returned no usable videos, set title to a concise statement such as 'No videos found for <topic>' and use subtitle to explain that the search did not return embeddable video sources. Set videoGalleryItems to an empty array.
|
|
2169
|
+
- When the user restricted results to a named creator and nothing from that creator was retrieved, say so plainly (e.g. 'No videos from <creator> found') \u2014 never present other channels' videos instead.
|
|
2166
2170
|
- Do not invent video URLs to fill the playlist when no results were retrieved.
|
|
2167
2171
|
- availableVideos empty does NOT mean nothing was found: when availableVideos is empty but internationalVideos is not, the search DID find videos \u2014 in other languages than the user's. Never title it 'No videos found' in that case; use the subtitle to say the fresh results are in other languages and listed in internationalCoverage, and fill internationalCoverage from the internationalVideos pool.
|
|
2168
2172
|
- The dashboard does not render sources for this template. Do not include a sources field.`;
|
|
@@ -2432,18 +2436,12 @@ ${CONTENT_LANGUAGE_RULE}`;
|
|
|
2432
2436
|
|
|
2433
2437
|
// src/prompts/harness/intent-selection/memory-rules.prompt.ts
|
|
2434
2438
|
var MEMORY_RULES = `MEMORY RULES (ABSOLUTE \u2014 when memory tools are enabled)
|
|
2435
|
-
Memory is an active growth loop, not a passive store: the model
|
|
2436
|
-
|
|
2437
|
-
without needing an explicit "remember" instruction. Two lanes, never confused:
|
|
2438
|
-
- memory-partition = the OBJECTIVE fact store: external-world facts, factual records, project details, and events the user stated, subjects gathered, or facts the user asked you to remember.
|
|
2439
|
+
Memory is an active growth loop, not a passive store: the model probes its memory on every turn, and an automatic background pass after each answered turn decides what (if anything) is worth persisting. Two lanes, never confused:
|
|
2440
|
+
- memory-partition = the OBJECTIVE fact store: external-world facts, factual records, project details, and events the user stated, subjects gathered, or facts the user asked to remember.
|
|
2439
2441
|
- memory-cognition = the SUBJECTIVE profile store: EVERY preference, interest, trait, or internal state of the user (stated or inferred) plus your persona learnings \u2014 subjective user data NEVER goes to the partition.
|
|
2442
|
+
- AUTOMATIC WRITE: persisting needs NO tool and no instruction from you \u2014 after every turn, a judged memory pass reads the turn with its gathered data and stores what is durably worth remembering (objective facts to the partition, preferences and derived understanding to cognition, explicit "remember this" asks included). Never claim you stored something during the turn, and never skip capturing because no write tool exists \u2014 the background pass has it covered.
|
|
2440
2443
|
- ALWAYS-PROBE: include the enabled memory-partition-recall tool in EVERY request as a cheap probe \u2014 regardless of topic, template, or how public the answer looks. The classifier cannot know whether the user has stored memory about the subject without checking; the probe is that check. memory-partition-recall returns any stored objective facts about the request's subject (saved vital data, contact details, decisions, notes, earlier statements) which the answer must include alongside public data, keeping the two sources distinct.
|
|
2441
|
-
-
|
|
2442
|
-
- FACT CAPTURE: when the user states an objective, durable detail (their contact info, their setup, a decision, a project fact), include the enabled memory-partition-remember tool so that fact is recorded.
|
|
2443
|
-
- PREFERENCE CAPTURE: when the user states a preference, interest, or trait about themselves (their favorite X, a like or dislike, a style choice \u2014 however phrased, any language), include the enabled memory-cognition-remember tool so that preference is recorded in the cognition lane \u2014 even when the user did not say "remember". Preferences never belong in the partition; noticing and storing them is expected behavior.
|
|
2444
|
-
- DERIVED UNDERSTANDING: when the turn reveals something you LEARN about the user that they did not state outright (an inferred trait, a standing interest, a connection between facts), include the enabled memory-cognition-remember tool so that understanding is recorded in the cognition lane \u2014 never in the partition lane.
|
|
2445
|
-
- EXPLICIT INSTRUCTION: when the user explicitly asks to remember, track, follow, or learn something (however phrased, in any language), act on it: an objective fact goes to the enabled memory-partition-remember tool, a preference or any other subjective profile datum ("remember that I like\u2026") goes to the enabled memory-cognition-remember tool.
|
|
2446
|
-
- UPDATE-LOOP: when memory-partition-recall shows the user already has facts on the subject, the remember call must UPDATE or EXTEND them, never duplicate or contradict. The turn pipeline also extracts notable facts automatically, so the remember tool is the explicit agentic write, not the only write path.
|
|
2444
|
+
- UPDATE-LOOP: when memory-partition-recall shows the user already has facts on the subject, the answer reflects them and the automatic write pass refines or extends them when the user restates or corrects a detail \u2014 restating a stored record updates it in place, never duplicates it.
|
|
2447
2445
|
- FORGET A FACT: when the user asks to forget, delete, or stop remembering a specific statement (however phrased, in any language), include the enabled memory-partition-recall AND memory-partition-delete tools \u2014 recall surfaces the verbatim stored statement, delete removes exactly that record. Deletion is exact: the model recalls first, then deletes the verbatim text (records have no ids).
|
|
2448
2446
|
- FORGET A PREFERENCE: when the user asks to forget a preference, an interest, or any other subjective profile datum ("forget that I like\u2026", however phrased, in any language), include the enabled memory-cognition-delete tool \u2014 it deletes one verbatim insight (quoted from your injected cognition context) and/or prunes one standing profile topic by its path ("likes.jazz"). Targeted and confirmable \u2014 no wipe involved.
|
|
2449
2447
|
- FORGET UNDERSTANDING: when the user asks to forget what you know or have LEARNED about them (preferences, traits, persona \u2014 not an objective fact), include the enabled memory-cognition-forget tool \u2014 it wipes your whole cognition space (the structured profile AND every derived insight), the AI's own accumulated model of the user. For a single preference or insight, memory-cognition-delete is the targeted path; the wipe is for starting over. Full fact-store wipes stay a settings (settings) action, never a tool call.
|
|
@@ -2584,6 +2582,12 @@ var EXPLICIT_PROVIDER_RULES = `EXPLICIT PROVIDER MENTIONS (override the "every e
|
|
|
2584
2582
|
- If the user explicitly names a search engine, provider, or platform by name (e.g. "on YouTube", "via Serper", "search Bright Data"), include ONLY that provider's matching tool(s) \u2014 never every tool of that type.
|
|
2585
2583
|
- The mention must be explicit: "videos of X" still means every enabled *VideoSearch tool; "YouTube videos of X" means youtubeVideoSearch only.
|
|
2586
2584
|
- If the named provider's tool is not in the enabled catalog, fall back to the enabled equivalent of that type.`;
|
|
2585
|
+
var CREATOR_RESTRICTION_RULES = `CREATOR RESTRICTION (contentCreator)
|
|
2586
|
+
- When the user explicitly names a creator, channel, label, or publisher with exclusive intent \u2014 "from the channel X", "only videos by X", "from X, drop everything else" \u2014 set contentCreator to that name, copied verbatim exactly as the user wrote it.
|
|
2587
|
+
- Both signals are required: a named creator AND exclusivity. A bare topic mention ("katame style beats", "videos like Vox") sets no restriction.
|
|
2588
|
+
- Genre, mood, or style words are never creators ("dark trap", "lofi beats" \u2192 leave contentCreator empty).
|
|
2589
|
+
- Never correct, extend, translate, or guess the name \u2014 "katame" stays "katame", never "Katame Chill". Later steps match it against the channel names in the results.
|
|
2590
|
+
- contentCreator narrows WHO may supply the content; it never changes WHICH tools are selected \u2014 tool choice still follows the other rules, and a named platform still narrows providers per EXPLICIT PROVIDER MENTIONS.`;
|
|
2587
2591
|
var TOOL_SELECTION_MODEL = `TOOL SELECTION MODEL
|
|
2588
2592
|
Tool selection is MULTI-SET COMPOSITION.
|
|
2589
2593
|
Rules:
|
|
@@ -2739,6 +2743,8 @@ ${TOOL_NAME_RULES}
|
|
|
2739
2743
|
|
|
2740
2744
|
${EXPLICIT_PROVIDER_RULES}
|
|
2741
2745
|
|
|
2746
|
+
${CREATOR_RESTRICTION_RULES}
|
|
2747
|
+
|
|
2742
2748
|
${TOOL_SELECTION_MODEL}
|
|
2743
2749
|
|
|
2744
2750
|
${WHEN_TO_USE_TOOLS_RULES}
|
|
@@ -2969,6 +2975,7 @@ RULES:
|
|
|
2969
2975
|
- If the request is ambiguous set needsClarification=true and provide a concise question in the language identified by the "language" field. The question must offer the most likely interpretations as options.
|
|
2970
2976
|
- imageCount: set only when the user explicitly requests a number of images, or asks for more images without a number (then ${MORE_MEDIA_COUNT}); otherwise omit \u2014 the system uses the configured reference-pool default (Settings Sources) for describe/compare/ocr and ${DEFAULT_MEDIA_COUNT} for other templates.
|
|
2971
2977
|
- videoCount: set only when the user explicitly requests a number of videos, or asks for more videos without a number (then ${MORE_MEDIA_COUNT}); otherwise omit \u2014 the system defaults to ${DEFAULT_MEDIA_COUNT}.
|
|
2978
|
+
- contentCreator: set only on an explicit creator/channel restriction with exclusive intent (per CREATOR RESTRICTION above) \u2014 the name copied verbatim; otherwise omit or leave empty.
|
|
2972
2979
|
- plan.images.resize should be true when images are present, unless the user explicitly asks for full resolution.
|
|
2973
2980
|
- plan.images.variants should only include variants that would materially improve the analysis. Leave empty if the original is sufficient.
|
|
2974
2981
|
- language: detect from the latest user message. ${INTENT_LANGUAGE_FIELD_RULE} Never default to English. If genuinely undetectable, omit the field. ALL human-readable text must be in that language.
|
|
@@ -3516,66 +3523,6 @@ ${limitText(priorFacts, params.maxPayloadChars)}`
|
|
|
3516
3523
|
return parts.join("\n\n");
|
|
3517
3524
|
}
|
|
3518
3525
|
var MEMORY_PROFILE_VERDICT = "Decide: output the JSON object now \u2014 the profile patch (or null when unchanged), any new insights, and an optional episode.";
|
|
3519
|
-
|
|
3520
|
-
// src/prompts/memory/memory-write-prompt.constant.ts
|
|
3521
|
-
var 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.
|
|
3522
|
-
|
|
3523
|
-
Two lanes, never confused:
|
|
3524
|
-
- 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.
|
|
3525
|
-
- 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.
|
|
3526
|
-
|
|
3527
|
-
You receive:
|
|
3528
|
-
- USER REQUEST: what the user asked.
|
|
3529
|
-
- PRIOR MEMORY: facts already stored for this user (may be empty).
|
|
3530
|
-
- PROBED THIS TURN: what memory-partition-recall already surfaced for this turn (may be empty) \u2014 already known, never re-store.
|
|
3531
|
-
- GATHERED DATA: summarized tool results from this turn (web searches, lookups).
|
|
3532
|
-
|
|
3533
|
-
Store into the PARTITION lane (call memory-partition-remember) only when it is durable, objective, and user-specific:
|
|
3534
|
-
- 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).
|
|
3535
|
-
- Knowledge about a subject the user cares about that was gathered this turn and extends what is already in PRIOR MEMORY.
|
|
3536
|
-
|
|
3537
|
-
ROUTING 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.
|
|
3538
|
-
|
|
3539
|
-
Store into the COGNITION lane (call memory-cognition-remember) whenever the turn yields SUBJECTIVE user data, stated or derived:
|
|
3540
|
-
- 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.
|
|
3541
|
-
- An inferred trait, a standing interest, a working nuance, or a connection between facts the turn supports.
|
|
3542
|
-
- Never an objective fact \u2014 those belong in the partition lane.
|
|
3543
|
-
|
|
3544
|
-
STORAGE MECHANICS \u2014 how your memory works (write for the retriever):
|
|
3545
|
-
- 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").
|
|
3546
|
-
- Restating a record verbatim OVERWRITES it in place \u2014 updates are restatements of the full corrected statement, not diffs.
|
|
3547
|
-
- 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").
|
|
3548
|
-
- 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):
|
|
3549
|
-
- category (CLUSTER): ONE lowercase PLURAL family noun \u2014 stocks, games, pets, work, health, finance, contacts \u2026
|
|
3550
|
-
- community (COMMUNITY): ONE lowercase PLURAL sub-family narrowing the category ("survival games" under "games", "tv shows" under "shows"); omit when no sub-family applies.
|
|
3551
|
-
- 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.
|
|
3552
|
-
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.
|
|
3553
|
-
- 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.
|
|
3554
|
-
|
|
3555
|
-
TAXONOMY PROBING (pick first, create if necessary): before naming a tier label you are not certain exists, call memory-taxonomy-probe top-down \u2014 cluster \u2192 community \u2192 hub \u2192 node \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, singular node aspect) 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.
|
|
3556
|
-
|
|
3557
|
-
Do NOT store:
|
|
3558
|
-
- Public facts merely fetched this turn that do not relate to the user (e.g. generic web results).
|
|
3559
|
-
- Anything already covered by PRIOR MEMORY or PROBED THIS TURN \u2014 extend or update it via the remember call; do not repeat.
|
|
3560
|
-
- Tool artifacts: URLs, search scores, image metadata, raw JSON keys.
|
|
3561
|
-
- 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".
|
|
3562
|
-
|
|
3563
|
-
Rules:
|
|
3564
|
-
- Each remember call stores ONE self-contained statement (stand-alone, understandable weeks later without this conversation's context).
|
|
3565
|
-
- Call each remember tool once per distinct durable item \u2014 no more.
|
|
3566
|
-
- 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.`;
|
|
3567
|
-
function buildMemoryWritePrompt(params) {
|
|
3568
|
-
const vocabulary = buildVocabularySection(params.vocabulary);
|
|
3569
|
-
return [
|
|
3570
|
-
`USER REQUEST: ${params.userRequest}`,
|
|
3571
|
-
`PRIOR MEMORY: ${params.priorMemory?.trim() || "(none stored yet)"}`,
|
|
3572
|
-
`PROBED THIS TURN: ${params.probedMemory?.trim() || "(nothing probed this turn)"}`,
|
|
3573
|
-
`GATHERED DATA: ${params.gathered?.trim() || "(no tools produced data this turn)"}`,
|
|
3574
|
-
vocabulary,
|
|
3575
|
-
MEMORY_WRITE_VERDICT
|
|
3576
|
-
].filter(Boolean).join("\n\n");
|
|
3577
|
-
}
|
|
3578
|
-
var MEMORY_WRITE_VERDICT = 'Decide: store each durable objective fact with one memory-partition-remember call, each subjective user datum (stated or derived) with one memory-cognition-remember call, or answer "none" if the turn surfaced nothing durable about this user.';
|
|
3579
3526
|
var ResearchFrictionQueryDecisionSchema = z.object({
|
|
3580
3527
|
/** The friction id — echoed back so the worker maps the verdict to its candidate. */
|
|
3581
3528
|
id: z.string(),
|
|
@@ -3707,16 +3654,7 @@ RULES:
|
|
|
3707
3654
|
- No markdown code fences, no explanations, preamble, or postscript.`
|
|
3708
3655
|
});
|
|
3709
3656
|
}
|
|
3710
|
-
var FACT_KINDS = [
|
|
3711
|
-
"preference",
|
|
3712
|
-
"decision",
|
|
3713
|
-
"state",
|
|
3714
|
-
"contact",
|
|
3715
|
-
"project",
|
|
3716
|
-
"possession",
|
|
3717
|
-
"relationship",
|
|
3718
|
-
"fact"
|
|
3719
|
-
];
|
|
3657
|
+
var FACT_KINDS = ["decision", "state", "contact", "project", "possession", "relationship", "fact"];
|
|
3720
3658
|
var FACT_STABILITIES = ["durable", "volatile"];
|
|
3721
3659
|
var ExtractedFactSchema = z.object({
|
|
3722
3660
|
/**
|
|
@@ -3760,11 +3698,19 @@ var ExtractedFactSchema = z.object({
|
|
|
3760
3698
|
stability: z.enum(FACT_STABILITIES)
|
|
3761
3699
|
});
|
|
3762
3700
|
var ExtractionSchema = z.object({
|
|
3701
|
+
/**
|
|
3702
|
+
* The verdict, committed BEFORE any record is written: does this text
|
|
3703
|
+
* carry anything worth recalling in a later, unrelated conversation?
|
|
3704
|
+
* `false` is the default outcome for ordinary turns — greetings, answered
|
|
3705
|
+
* questions, one-off requests — and requires facts, tags, category, and
|
|
3706
|
+
* community to all be empty. `true` requires at least one fact.
|
|
3707
|
+
*/
|
|
3708
|
+
remember: z.boolean(),
|
|
3763
3709
|
/**
|
|
3764
3710
|
* Durable, self-contained facts worth remembering in a later, unrelated
|
|
3765
|
-
* conversation (
|
|
3766
|
-
*
|
|
3767
|
-
*
|
|
3711
|
+
* conversation (decisions, contact details, project facts, events), each
|
|
3712
|
+
* carrying its maintenance metadata (subject, category, kind, stability).
|
|
3713
|
+
* MUST be empty when `remember` is false, non-empty when it is true.
|
|
3768
3714
|
*/
|
|
3769
3715
|
facts: z.array(ExtractedFactSchema),
|
|
3770
3716
|
/**
|
|
@@ -3804,7 +3750,7 @@ var ExtractionSchema = z.object({
|
|
|
3804
3750
|
var USER_SOURCE_VOICE_RULES = `SOURCE VOICE: this extraction source is the USER's own message \u2014 statements in it are the user's voice and may be attributed to the user.`;
|
|
3805
3751
|
var ASSISTANT_SOURCE_VOICE_RULES = `SOURCE VOICE (absolute): this extraction source is the ASSISTANT's own generated answer \u2014 a flattened digest of its titles, verdicts, and findings \u2014 NOT the user's words.
|
|
3806
3752
|
- First-person statements, verdicts, scores, recommendations, and "my take" phrasing are the ASSISTANT's voice. NEVER attribute them to the user: no fact of the form "the user thinks / describes / wants / would / decided \u2026" may be drawn from this source.
|
|
3807
|
-
- The assistant's opinions, judgments, verdicts, and recommendations are NOT durable objective facts \u2014 never extract them. When the source only conveys the assistant's opinion, return
|
|
3753
|
+
- The assistant's opinions, judgments, verdicts, and recommendations are NOT durable objective facts \u2014 never extract them. When the source only conveys the assistant's opinion, return remember=false.
|
|
3808
3754
|
- Extract only objective, checkable world facts the answer asserts, with the subject ENTITY as the hub \u2014 never "user" as the subject of assistant-voice content.
|
|
3809
3755
|
- Statements about reception or coverage keep their true source ("available coverage of X notes \u2026"), never "the user";`;
|
|
3810
3756
|
function buildExtractionPrompt(vocabulary = {}, role = "user") {
|
|
@@ -3812,14 +3758,17 @@ function buildExtractionPrompt(vocabulary = {}, role = "user") {
|
|
|
3812
3758
|
return buildStructuredPrompt(ExtractionSchema, {
|
|
3813
3759
|
before: "OUTPUT FORMAT \u2014 output ONLY valid JSON matching this exact schema:",
|
|
3814
3760
|
after: `
|
|
3815
|
-
YOUR TASK \u2014 decide
|
|
3816
|
-
|
|
3817
|
-
-
|
|
3818
|
-
-
|
|
3819
|
-
-
|
|
3761
|
+
YOUR TASK \u2014 decide FIRST whether this text is worth long-term memory, then distill:
|
|
3762
|
+
- VERDICT FIRST (absolute): "remember" is the gate, and it comes first. Set remember=false whenever the text carries nothing worth recalling in a later, unrelated conversation \u2014 greetings, small talk, filler, questions that were merely answered, one-off requests. Most ordinary turns are remember=false. When remember=false, facts, tags, category, and community are ALL empty; remember=true REQUIRES at least one fact.
|
|
3763
|
+
- ONE-OFF REQUESTS ARE NEVER FACTS: a task the user asks the assistant to do right now ("find X", "play Y", "summarize Z") is the current request, not knowledge about anyone. Never emit facts of the form "the user wants to find / watch / buy / do \u2026" \u2014 from "find japanese dark trap music by katame on youtube" there is nothing to store, period. A STANDING preference or interest the request reveals ("the user is into japanese dark trap") is subjective user data \u2014 never emitted here either (see ROUTING BOUNDARY).
|
|
3764
|
+
- ROUTING BOUNDARY (absolute): this extraction feeds the memory partition \u2014 the OBJECTIVE fact store ONLY. Extract only objective, external-world facts and events: factual records, project details, decisions, states, possessions, contacts, relationships between people. You MUST NOT extract subjective user data \u2014 no preferences, likes/dislikes, interests, wants, behavioral traits, or internal states ("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; when the turn reveals ONLY subjective user data, return remember=false.
|
|
3765
|
+
- What IS worth remembering: durable, objective information that remains useful in a later, unrelated conversation \u2014 decisions, contact details, project facts, technical constraints, events (e.g. "Sam's phone number is 555-1234", "The user is building a vector memory feature", "The payments service migrated to PostgreSQL in November").
|
|
3766
|
+
- DROP-BIAS (absolute): when in doubt whether a detail is durable, DROP it. A worthless record pollutes the fact store, the taxonomy, and every future recall; a detail that truly matters will be re-stated another day. Extracting nothing is always better than extracting noise.
|
|
3820
3767
|
- Facts must be self-contained \u2014 no "this"/"that" references; write them as third-person statements.
|
|
3821
3768
|
- Storage mechanics: each fact is embedded as a whole and matched sentence-by-sentence at recall time (multi-variant retrieval). One dense sentence is fine \u2014 put the subject up front ("The payments service runs PostgreSQL 16", not "It runs that version").
|
|
3822
|
-
|
|
3769
|
+
${sourceVoiceRules}
|
|
3770
|
+
- GATHERED DATA (when the source text is followed by a "GATHERED DATA" section \u2014 this turn's tool results): durable knowledge about subjects the USER cares about may be distilled from it ("Katame is a japanese dark-trap producer releasing on YouTube" counts only when the turn shows the user tracks that artist). Never store tool artifacts \u2014 URLs, search scores, image metadata, raw JSON keys \u2014 and never store public trivia unrelated to the user's subjects.
|
|
3771
|
+
- ATTACHED FILES (when an "ATTACHED FILES" section lists this turn's uploads): distill what a file durably IS when the turn reveals it ("bauplan.pdf is the floor plan for the user's garage conversion") \u2014 never the mere act of uploading, never bare file metadata.
|
|
3823
3772
|
|
|
3824
3773
|
FACT METADATA \u2014 every fact object carries the fields the maintenance passes (consolidate/reflect/conviction) interpret. Labels place the fact in the macro-taxonomy, top-down: CLUSTER \u2192 COMMUNITY \u2192 HUB \u2192 NODE \u2192 LEAF, where the LEAF is the fact's text itself and every tier above it is a NAMED label that narrows where it is filed. The chain is strict: a fact is emitted with ALL FOUR labels or not at all.
|
|
3825
3774
|
- CLUSTER (category): a broad PLURAL family noun ("games", "stocks", "pets").
|
|
@@ -3834,7 +3783,6 @@ Fields:
|
|
|
3834
3783
|
- category (required): ONE broad lowercase PLURAL family label for this fact \u2014 the CLUSTER tier \u2014 reusing the known vocabulary.
|
|
3835
3784
|
- community (required): ONE broad lowercase PLURAL sub-family narrowing the fact's category \u2014 the COMMUNITY tier, one level below the cluster (a genre, project family, or domain branch \u2014 "survival-games" under "games").
|
|
3836
3785
|
- kind (required): what kind of durable thing it is:
|
|
3837
|
-
- preference \u2014 RESERVED, never emit: likes, dislikes, wants, and interests are subjective user data owned by the cognition tier (see ROUTING BOUNDARY)
|
|
3838
3786
|
- decision \u2014 a choice that was made (adoptions, migrations, purchases committed to)
|
|
3839
3787
|
- state \u2014 the CURRENT, changeable situation (lives in X, uses version Y, runs Z) \u2014 newer statements supersede these
|
|
3840
3788
|
- contact \u2014 contact details of a person (phone, email, address)
|
|
@@ -3843,21 +3791,21 @@ Fields:
|
|
|
3843
3791
|
- relationship \u2014 how people relate ("sam is the user's brother")
|
|
3844
3792
|
- fact \u2014 any other durable fact
|
|
3845
3793
|
- 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.
|
|
3846
|
-
- 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.
|
|
3847
|
-
- 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).
|
|
3848
|
-
- 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.
|
|
3849
|
-
- If nothing durable is found, return an empty facts array; tags may still label the topic when useful.
|
|
3794
|
+
- 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. Only when remember=true.
|
|
3795
|
+
- 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). Only when remember=true.
|
|
3796
|
+
- 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. Never a specific entity, product, or title \u2014 a show/work title like "breaking-bad" is a tag or hub, never a community. Only when remember=true.
|
|
3850
3797
|
${buildVocabularySection(vocabulary)}
|
|
3851
|
-
PRIOR MEMORY (when the
|
|
3798
|
+
PRIOR MEMORY (when the source text ends with an "ALREADY STORED IN MEMORY" section):
|
|
3852
3799
|
- That section lists facts already stored in YOUR long-term memory from prior turns. NEVER emit a fact already covered there.
|
|
3853
3800
|
- If this turn refines, corrects, or completes a stored fact, DO emit it \u2014 as one fuller, self-contained restatement (a full restatement of the corrected claim overwrites the old record in place; it is never a diff).
|
|
3854
3801
|
- A statement that flips or adds negation to a stored fact is NEW information \u2014 always emit it.
|
|
3855
|
-
- Everything not covered by the section is
|
|
3802
|
+
- Everything not covered by the section is judged as usual.
|
|
3856
3803
|
|
|
3857
3804
|
RULES:
|
|
3858
3805
|
- Return ONLY a single valid JSON object matching the exact schema above.
|
|
3806
|
+
- The "remember" boolean is always present and consistent with the output: false exactly when facts is empty, true exactly when it is not \u2014 and when false, tags, category, and community are empty too.
|
|
3859
3807
|
- No markdown code fences, no explanations, preamble, or postscript.
|
|
3860
|
-
- Never output undefined or null.
|
|
3808
|
+
- Never output undefined or null. The "remember" and "facts" keys are always present.
|
|
3861
3809
|
|
|
3862
3810
|
FINAL REMINDER:
|
|
3863
3811
|
- Output ONLY valid JSON matching the exact schema above. No markdown code fences, no explanations, preamble, or postscript.`
|
|
@@ -3869,7 +3817,7 @@ Error: ${error}
|
|
|
3869
3817
|
|
|
3870
3818
|
Return ONLY a single valid JSON object matching the extraction schema exactly:
|
|
3871
3819
|
${formatZodShape(ExtractionSchema)}
|
|
3872
|
-
All object keys must be quoted with double quotes. Per fact, "subject", "node", "category", and "community" are required alongside "kind" and "stability".
|
|
3820
|
+
All object keys must be quoted with double quotes. "remember" is always required and must be true exactly when facts is non-empty, false when it is empty. Per fact, "subject", "node", "category", and "community" are required alongside "kind" and "stability".
|
|
3873
3821
|
Do not add markdown code fences, explanations, placeholders, or extra text.
|
|
3874
3822
|
|
|
3875
3823
|
FINAL REMINDER:
|
|
@@ -3903,4 +3851,4 @@ Compose the response from the snippets below. Include every snippet you can subs
|
|
|
3903
3851
|
${parts.join("\n\n")}`;
|
|
3904
3852
|
}
|
|
3905
3853
|
|
|
3906
|
-
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,
|
|
3854
|
+
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, 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, TEXT_OPINION_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, 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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export { E as EncyclopediaDocumentInput, a as EncyclopediaDocumentResult, b as EncyclopediaSearchHit, c as EncyclopediaSearchInput } from '../encyclopedia-search.model-oFW8_rUT.js';
|
|
3
|
-
import { F as FormatZodShapeOptions } from '../format-zod-shape.types-
|
|
4
|
-
export { B as BROWSER_TOOL_NAMES, D as DEFAULT_VARIANT_ID, E as ENCYCLOPEDIA_TOOL_NAMES, a as IMAGE_TASK_TEMPLATES, b as ImageTaskTemplate, I as IntentResult, c as IntentSchema, M as MEMORY_TOOL_NAMES, d as TOOL_DESCRIPTIONS, e as TOOL_NAMES, T as TemplateName, f as ToolName, g as VARIANT_NAMES, V as VariantName, i as isImageTaskTemplate } from '../format-zod-shape.types-
|
|
3
|
+
import { F as FormatZodShapeOptions } from '../format-zod-shape.types-BByqTKpk.js';
|
|
4
|
+
export { B as BROWSER_TOOL_NAMES, D as DEFAULT_VARIANT_ID, E as ENCYCLOPEDIA_TOOL_NAMES, a as IMAGE_TASK_TEMPLATES, b as ImageTaskTemplate, I as IntentResult, c as IntentSchema, M as MEMORY_TOOL_NAMES, d as TOOL_DESCRIPTIONS, e as TOOL_NAMES, T as TemplateName, f as ToolName, g as VARIANT_NAMES, V as VariantName, i as isImageTaskTemplate } from '../format-zod-shape.types-BByqTKpk.js';
|
|
5
5
|
|
|
6
6
|
declare const BLOCKED_IMAGE_HOSTS: Set<string>;
|
|
7
7
|
|
|
@@ -244,7 +244,7 @@ declare const MemoryEnrichmentSchema: z.ZodObject<{
|
|
|
244
244
|
}, z.core.$strip>;
|
|
245
245
|
type MemoryEnrichment = z.infer<typeof MemoryEnrichmentSchema>;
|
|
246
246
|
|
|
247
|
-
declare const FACT_KINDS: readonly ["
|
|
247
|
+
declare const FACT_KINDS: readonly ["decision", "state", "contact", "project", "possession", "relationship", "fact"];
|
|
248
248
|
declare const FACT_STABILITIES: readonly ["durable", "volatile"];
|
|
249
249
|
declare const ExtractedFactSchema: z.ZodObject<{
|
|
250
250
|
text: z.ZodString;
|
|
@@ -253,7 +253,6 @@ declare const ExtractedFactSchema: z.ZodObject<{
|
|
|
253
253
|
category: z.ZodString;
|
|
254
254
|
community: z.ZodString;
|
|
255
255
|
kind: z.ZodEnum<{
|
|
256
|
-
preference: "preference";
|
|
257
256
|
decision: "decision";
|
|
258
257
|
state: "state";
|
|
259
258
|
contact: "contact";
|
|
@@ -269,6 +268,7 @@ declare const ExtractedFactSchema: z.ZodObject<{
|
|
|
269
268
|
}, z.core.$strip>;
|
|
270
269
|
type ExtractedFact = z.infer<typeof ExtractedFactSchema>;
|
|
271
270
|
declare const ExtractionSchema: z.ZodObject<{
|
|
271
|
+
remember: z.ZodBoolean;
|
|
272
272
|
facts: z.ZodArray<z.ZodObject<{
|
|
273
273
|
text: z.ZodString;
|
|
274
274
|
subject: z.ZodString;
|
|
@@ -276,7 +276,6 @@ declare const ExtractionSchema: z.ZodObject<{
|
|
|
276
276
|
category: z.ZodString;
|
|
277
277
|
community: z.ZodString;
|
|
278
278
|
kind: z.ZodEnum<{
|
|
279
|
-
preference: "preference";
|
|
280
279
|
decision: "decision";
|
|
281
280
|
state: "state";
|
|
282
281
|
contact: "contact";
|
package/dist/schemas/index.mjs
CHANGED
|
@@ -172,10 +172,8 @@ var TOOL_DESCRIPTIONS = {
|
|
|
172
172
|
requestDenoised: "Request a denoised (blurred) version of the images. Use when the original has noise, grain, or artifacts that hide details.",
|
|
173
173
|
requestSharpened: "Request a sharpened version of the images. Use when edges or fine details are blurry.",
|
|
174
174
|
requestClahe: "Request a CLAHE (contrast-enhanced) version of the images. Use when details are hidden in shadows or highlights.",
|
|
175
|
-
"memory-partition-remember": `Store into the user's fact partition (memory-partition) \u2014 OBJECTIVE facts only: notable external-world facts about subjects they care about (projects, followed stocks, people, past topics), objective details they state (contact info, decisions, constraints), and objective facts they explicitly ask you to remember. Subjective user data (preferences, interests, traits, internal states) belongs to memory-cognition-remember, never here. Storing gathered knowledge is expected \u2014 do not wait for an explicit "remember" instruction.`,
|
|
176
175
|
"memory-partition-recall": "Retrieve from the user's fact partition (memory-partition) \u2014 things they told you in past conversations or asked you to remember. These are trusted user statements, not public facts; attribute them to the user and prefer them over web results for anything personal. Check this tool whenever a request touches a subject this user has cared about before.",
|
|
177
176
|
"memory-partition-delete": "Delete one exact fact record from the user's fact partition (memory-partition), quoted verbatim from a memory-partition-recall result. Never delete on a guess: recall first, delete the verbatim statement. Needs memory-partition-recall alongside it.",
|
|
178
|
-
"memory-cognition-remember": "Store one insight into your cognition space (memory-cognition) \u2014 the exclusive store for subjective user data: preferences and interests the user states, inferred traits, standing interests, working nuances, connections between facts. Objective facts (contact info, decisions, project details, events) belong in memory-partition-remember.",
|
|
179
177
|
"memory-cognition-delete": 'Delete one targeted piece of your cognition space (memory-cognition): a verbatim stored insight (quoted from your cognition context) and/or one standing profile topic by its path ("likes.jazz"). The per-item forget for subjective user data; memory-cognition-forget is the whole-space wipe.',
|
|
180
178
|
"memory-cognition-forget": "Wipe your entire cognition space (memory-cognition) of the user \u2014 the structured profile AND every derived insight \u2014 only when the user asks you to forget your learned understanding of them or to start over. Fact records in the partition are untouched."
|
|
181
179
|
};
|
|
@@ -197,10 +195,8 @@ var BROWSER_TOOL_NAMES = [
|
|
|
197
195
|
"browser_verify_text_visible"
|
|
198
196
|
];
|
|
199
197
|
var MEMORY_TOOL_NAMES = [
|
|
200
|
-
"memory-partition-remember",
|
|
201
198
|
"memory-partition-recall",
|
|
202
199
|
"memory-partition-delete",
|
|
203
|
-
"memory-cognition-remember",
|
|
204
200
|
"memory-cognition-delete",
|
|
205
201
|
"memory-cognition-forget"
|
|
206
202
|
];
|
|
@@ -234,10 +230,8 @@ var TOOL_NAMES = [
|
|
|
234
230
|
"requestDenoised",
|
|
235
231
|
"requestSharpened",
|
|
236
232
|
"requestClahe",
|
|
237
|
-
"memory-partition-remember",
|
|
238
233
|
"memory-partition-recall",
|
|
239
234
|
"memory-partition-delete",
|
|
240
|
-
"memory-cognition-remember",
|
|
241
235
|
"memory-cognition-forget",
|
|
242
236
|
...BROWSER_TOOL_NAMES
|
|
243
237
|
];
|
|
@@ -518,6 +512,9 @@ var IntentSchema = z.object({
|
|
|
518
512
|
contentLanguages: z.array(z.string()).default([]).describe(
|
|
519
513
|
`Two-letter ISO codes of languages the requested CONTENT is expected to be in, beyond the language of the user's message. Set ONLY when the request explicitly targets foreign-language content: "japanese dark trap music" \u2192 ["ja"], "russian news sites" \u2192 ["ru"]. Music/audio topics count \u2014 a mix or song in another language is still the requested content. Default []: foreign-language results then stay a side note, never primary content.`
|
|
520
514
|
),
|
|
515
|
+
contentCreator: z.string().default("").describe(
|
|
516
|
+
'The creator, channel, or publisher the user explicitly restricted the CONTENT to (e.g. "katame" in "japanese dark trap from the channel katame \u2014 drop everything else", "Vox" in "only videos by Vox"). Set ONLY on an explicit creator/channel restriction with exclusive intent; copy the name verbatim exactly as the user wrote it \u2014 never correct, extend, or translate it. Default "": no creator restriction.'
|
|
517
|
+
),
|
|
521
518
|
plan: z.object({
|
|
522
519
|
images: ImagePlanSchema.optional().describe("Image processing plan. Only present when images are attached.")
|
|
523
520
|
}).default({}).describe("Execution plan for the response step.")
|
|
@@ -615,16 +612,7 @@ var MemoryEnrichmentSchema = z.object({
|
|
|
615
612
|
*/
|
|
616
613
|
tags: z.array(z.string())
|
|
617
614
|
});
|
|
618
|
-
var FACT_KINDS = [
|
|
619
|
-
"preference",
|
|
620
|
-
"decision",
|
|
621
|
-
"state",
|
|
622
|
-
"contact",
|
|
623
|
-
"project",
|
|
624
|
-
"possession",
|
|
625
|
-
"relationship",
|
|
626
|
-
"fact"
|
|
627
|
-
];
|
|
615
|
+
var FACT_KINDS = ["decision", "state", "contact", "project", "possession", "relationship", "fact"];
|
|
628
616
|
var FACT_STABILITIES = ["durable", "volatile"];
|
|
629
617
|
var ExtractedFactSchema = z.object({
|
|
630
618
|
/**
|
|
@@ -668,11 +656,19 @@ var ExtractedFactSchema = z.object({
|
|
|
668
656
|
stability: z.enum(FACT_STABILITIES)
|
|
669
657
|
});
|
|
670
658
|
var ExtractionSchema = z.object({
|
|
659
|
+
/**
|
|
660
|
+
* The verdict, committed BEFORE any record is written: does this text
|
|
661
|
+
* carry anything worth recalling in a later, unrelated conversation?
|
|
662
|
+
* `false` is the default outcome for ordinary turns — greetings, answered
|
|
663
|
+
* questions, one-off requests — and requires facts, tags, category, and
|
|
664
|
+
* community to all be empty. `true` requires at least one fact.
|
|
665
|
+
*/
|
|
666
|
+
remember: z.boolean(),
|
|
671
667
|
/**
|
|
672
668
|
* Durable, self-contained facts worth remembering in a later, unrelated
|
|
673
|
-
* conversation (
|
|
674
|
-
*
|
|
675
|
-
*
|
|
669
|
+
* conversation (decisions, contact details, project facts, events), each
|
|
670
|
+
* carrying its maintenance metadata (subject, category, kind, stability).
|
|
671
|
+
* MUST be empty when `remember` is false, non-empty when it is true.
|
|
676
672
|
*/
|
|
677
673
|
facts: z.array(ExtractedFactSchema),
|
|
678
674
|
/**
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -416,25 +416,6 @@ interface MemoryCognitionForgetDeps {
|
|
|
416
416
|
}
|
|
417
417
|
declare function createMemoryCognitionForgetTool(deps: MemoryCognitionForgetDeps): Tool;
|
|
418
418
|
|
|
419
|
-
declare const memoryCognitionRememberSchema: z.ZodObject<{
|
|
420
|
-
text: z.ZodString;
|
|
421
|
-
path: z.ZodOptional<z.ZodString>;
|
|
422
|
-
}, z.core.$strip>;
|
|
423
|
-
type MemoryCognitionRememberInput = z.infer<typeof memoryCognitionRememberSchema>;
|
|
424
|
-
|
|
425
|
-
interface MemoryCognitionRememberDeps {
|
|
426
|
-
scope: MemoryToolScope;
|
|
427
|
-
storeInsight: (input: {
|
|
428
|
-
memoryCognition: string;
|
|
429
|
-
sessionId?: string;
|
|
430
|
-
conversationId?: string;
|
|
431
|
-
requestId?: string;
|
|
432
|
-
text: string;
|
|
433
|
-
path?: string;
|
|
434
|
-
}) => Promise<string>;
|
|
435
|
-
}
|
|
436
|
-
declare function createMemoryCognitionRememberTool(deps: MemoryCognitionRememberDeps): Tool;
|
|
437
|
-
|
|
438
419
|
declare const memoryPartitionDeleteSchema: z.ZodObject<{
|
|
439
420
|
text: z.ZodString;
|
|
440
421
|
}, z.core.$strip>;
|
|
@@ -473,41 +454,12 @@ interface MemoryPartitionRecallDeps {
|
|
|
473
454
|
}
|
|
474
455
|
declare function createMemoryPartitionRecallTool(deps: MemoryPartitionRecallDeps): Tool;
|
|
475
456
|
|
|
476
|
-
declare const memoryPartitionRememberSchema: z.ZodObject<{
|
|
477
|
-
text: z.ZodString;
|
|
478
|
-
category: z.ZodString;
|
|
479
|
-
community: z.ZodString;
|
|
480
|
-
subject: z.ZodString;
|
|
481
|
-
node: z.ZodString;
|
|
482
|
-
icon: z.ZodOptional<z.ZodString>;
|
|
483
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
484
|
-
}, z.core.$strip>;
|
|
485
|
-
type MemoryPartitionRememberInput = z.infer<typeof memoryPartitionRememberSchema>;
|
|
486
|
-
|
|
487
|
-
interface MemoryPartitionRememberDeps {
|
|
488
|
-
scope: MemoryToolScope;
|
|
489
|
-
storeRecord: (input: {
|
|
490
|
-
memoryPartition: string;
|
|
491
|
-
sessionId?: string;
|
|
492
|
-
conversationId?: string;
|
|
493
|
-
requestId?: string;
|
|
494
|
-
text: string;
|
|
495
|
-
tags?: string[];
|
|
496
|
-
category: string;
|
|
497
|
-
community: string;
|
|
498
|
-
subject: string;
|
|
499
|
-
node: string;
|
|
500
|
-
icon?: string;
|
|
501
|
-
}) => Promise<string>;
|
|
502
|
-
}
|
|
503
|
-
declare function createMemoryPartitionRememberTool(deps: MemoryPartitionRememberDeps): Tool;
|
|
504
|
-
|
|
505
457
|
declare const memoryTaxonomyProbeSchema: z.ZodObject<{
|
|
506
458
|
kind: z.ZodEnum<{
|
|
507
|
-
community: "community";
|
|
508
|
-
node: "node";
|
|
509
459
|
cluster: "cluster";
|
|
460
|
+
community: "community";
|
|
510
461
|
hub: "hub";
|
|
462
|
+
node: "node";
|
|
511
463
|
}>;
|
|
512
464
|
query: z.ZodString;
|
|
513
465
|
parentId: z.ZodOptional<z.ZodString>;
|
|
@@ -806,4 +758,4 @@ interface VideoStats {
|
|
|
806
758
|
lang?: string;
|
|
807
759
|
}
|
|
808
760
|
|
|
809
|
-
export { BRIGHT_DATA_TIMEOUT_MS, type BrightDataConfig, type BrightDataImageSearchInput, type BrightDataImageSearchResponse, type BrightDataNewsSearchInput, type BrightDataNewsSearchResponse, type BrightDataPlacesSearchInput, type BrightDataPlacesSearchResponse, type BrightDataShoppingSearchInput, type BrightDataShoppingSearchResponse, type BrightDataVideoSearchInput, type BrightDataVideoSearchResponse, type BrightDataWebSearchInput, type BrightDataWebSearchResponse, type BrightDataWebpageScrapeInput, type BrightDataWebpageScrapeResponse, type EncyclopediaReadToolInput, type EncyclopediaSearchToolInput, type EodhdConfig, type EodhdNewsConfig, type FilterVariant, HEADERS, MIN_IMAGE_HEIGHT, MIN_IMAGE_WIDTH, type MarketDailyBar, type MemoryCognitionDeleteInput, type MemoryCognitionDeleteOutcome, type MemoryCognitionForgetInput, type
|
|
761
|
+
export { BRIGHT_DATA_TIMEOUT_MS, type BrightDataConfig, type BrightDataImageSearchInput, type BrightDataImageSearchResponse, type BrightDataNewsSearchInput, type BrightDataNewsSearchResponse, type BrightDataPlacesSearchInput, type BrightDataPlacesSearchResponse, type BrightDataShoppingSearchInput, type BrightDataShoppingSearchResponse, type BrightDataVideoSearchInput, type BrightDataVideoSearchResponse, type BrightDataWebSearchInput, type BrightDataWebSearchResponse, type BrightDataWebpageScrapeInput, type BrightDataWebpageScrapeResponse, type EncyclopediaReadToolInput, type EncyclopediaSearchToolInput, type EodhdConfig, type EodhdNewsConfig, type FilterVariant, HEADERS, MIN_IMAGE_HEIGHT, MIN_IMAGE_WIDTH, type MarketDailyBar, type MemoryCognitionDeleteInput, type MemoryCognitionDeleteOutcome, type MemoryCognitionForgetInput, type MemoryPartitionDeleteInput, type MemoryPartitionRecallInput, MemoryPoint, type MemoryTaxonomyProbeCandidate, type MemoryTaxonomyProbeInput, type MemoryTaxonomyProbeResult, type MemoryToolScope, type ProviderEndpointConfig, RECENCY_DESCRIPTION, type ResolvableOffer, SEARCH_RETRIES, SEARCH_TIMEOUT_MS, SOURCE, STANDALONE_QUERY_DESCRIPTION, STANDALONE_QUERY_TOOL_CLAUSE, type SearchRecency, type SerperBusinessReviewsSearchInput, type SerperBusinessReviewsSearchResponse, type SerperConfig, type SerperImageSearchInput, type SerperImageSearchResponse, type SerperNewsSearchInput, type SerperNewsSearchResponse, type SerperPlacesSearchInput, type SerperPlacesSearchResponse, type SerperShoppingSearchInput, type SerperShoppingSearchResponse, type SerperVideoSearchInput, type SerperVideoSearchResponse, type SerperWebSearchInput, type SerperWebSearchResponse, type SerperWebpageScrapeInput, type SerperWebpageScrapeResponse, type SourcesConfig, type ToolConfigSnapshot, type ToolDependencies, type ToolLogger, type ToolSummaryFn, type ToolWithSummary, type Variant, type VideoStats, type WebFetchInput, type YoutubeConfig, type YoutubeSearchResponse, type YoutubeVideoSearchInput, type YoutubeVideosResponse, applyLocaleParams, applyRecencyParam, brightDataImageSearchSchema, brightDataNewsSearchSchema, brightDataPlacesSearchSchema, brightDataShoppingSearchSchema, brightDataVideoSearchSchema, brightDataWebSearchSchema, brightDataWebpageScrapeSchema, buildGoogleUrl, buildYoutubeThumbnailUrl, createBrightDataImageSearch, createBrightDataNewsSearch, createBrightDataPlacesSearch, createBrightDataShoppingSearch, createBrightDataVideoSearch, createBrightDataWebSearch, createBrightDataWebpageScrape, createEncyclopediaReadTool, createEncyclopediaSearchTool, createMemoryCognitionDeleteTool, createMemoryCognitionForgetTool, createMemoryPartitionDeleteTool, createMemoryPartitionRecallTool, createMemoryTaxonomyProbeTool, createSerperBusinessReviewsSearch, createSerperImageSearch, createSerperNewsSearch, createSerperPlacesSearch, createSerperShoppingSearch, createSerperVideoSearch, createSerperWebSearch, createSerperWebpageScrape, createVariantRequestTool, createWebFetchTool, createYoutubeVideoSearch, encyclopediaReadSchema, encyclopediaSearchSchema, engineEnabled, extractArticleText, fetchWithTimeout, isGoogleHostUrl, localizedQuerySuffix, meetsMinimumImageDimensions, memoryCognitionDeleteSchema, memoryCognitionForgetSchema, memoryPartitionDeleteSchema, memoryPartitionRecallSchema, memoryTaxonomyProbeSchema, pickMerchantResult, requestBrightData, resolveSerperShopOfferLinks, serperBusinessReviewsSearchSchema, serperImageSearchSchema, serperNewsSearchSchema, serperPlacesSearchSchema, serperShoppingSearchSchema, serperVideoSearchSchema, serperWebSearchSchema, serperWebpageScrapeSchema, storeHostToken, summarizeContent, summarizeFound, summarizeResults, tbsSizeLabelForPixels, variantRequestSchema, webFetchSchema, withSummary, youtubeVideoSearchSchema };
|
package/dist/tools/index.mjs
CHANGED
|
@@ -1002,8 +1002,8 @@ var defaultSummarize = (data) => {
|
|
|
1002
1002
|
};
|
|
1003
1003
|
|
|
1004
1004
|
// src/tools/helpers/with-summary.helper.ts
|
|
1005
|
-
function withSummary(
|
|
1006
|
-
const t =
|
|
1005
|
+
function withSummary(tool26, summarize = defaultSummarize) {
|
|
1006
|
+
const t = tool26;
|
|
1007
1007
|
t.summarize = summarize;
|
|
1008
1008
|
return t;
|
|
1009
1009
|
}
|
|
@@ -1087,38 +1087,6 @@ function createMemoryCognitionForgetTool(deps) {
|
|
|
1087
1087
|
}
|
|
1088
1088
|
});
|
|
1089
1089
|
}
|
|
1090
|
-
var memoryCognitionRememberSchema = z.object({
|
|
1091
|
-
text: z.string().min(1).max(2e3).describe(
|
|
1092
|
-
'The derived insight to store, as one self-contained third-person sentence, e.g. "The user prefers single-line if statements".'
|
|
1093
|
-
),
|
|
1094
|
-
path: z.string().min(1).max(200).optional().describe(
|
|
1095
|
-
'Optional profile facet this insight deepens, e.g. "likes.cars" \u2014 only when it deepens a stored profile value.'
|
|
1096
|
-
)
|
|
1097
|
-
});
|
|
1098
|
-
function createMemoryCognitionRememberTool(deps) {
|
|
1099
|
-
return tool({
|
|
1100
|
-
description: 'Store one insight into your cognition space (memory-cognition) \u2014 the exclusive store for SUBJECTIVE user data: preferences and interests the user STATES ("the user likes\u2026", "the user is interested in\u2026") plus what you LEARN about them (inferred traits, standing interests, working nuances, connections between facts). Objective facts (contact info, decisions, project details, events) belong in memory-partition-remember, never here. One self-contained third-person sentence per call, lead with the topic. Optionally attach a path (e.g. "likes.cars") when the insight deepens a stored profile value. Restating an insight verbatim updates it in place.',
|
|
1101
|
-
inputSchema: memoryCognitionRememberSchema,
|
|
1102
|
-
execute: async ({ text, path }) => {
|
|
1103
|
-
try {
|
|
1104
|
-
const id = await deps.storeInsight({
|
|
1105
|
-
memoryCognition: deps.scope.memoryCognition ?? deps.scope.memoryPartition,
|
|
1106
|
-
sessionId: deps.scope.sessionId,
|
|
1107
|
-
conversationId: deps.scope.conversationId,
|
|
1108
|
-
requestId: deps.scope.requestId,
|
|
1109
|
-
text,
|
|
1110
|
-
path
|
|
1111
|
-
});
|
|
1112
|
-
return { stored: true, id };
|
|
1113
|
-
} catch (error) {
|
|
1114
|
-
return {
|
|
1115
|
-
stored: false,
|
|
1116
|
-
error: error instanceof Error ? error.message : "cognition store failed"
|
|
1117
|
-
};
|
|
1118
|
-
}
|
|
1119
|
-
}
|
|
1120
|
-
});
|
|
1121
|
-
}
|
|
1122
1090
|
var memoryPartitionDeleteSchema = z.object({
|
|
1123
1091
|
text: z.string().min(3).max(2e3).describe(
|
|
1124
1092
|
"The exact stored statement to delete, quoted verbatim from a memory-partition-recall result. Record texts are the record identity \u2014 no ids needed. Never paraphrase: recall first, then delete the exact text."
|
|
@@ -1179,56 +1147,6 @@ ${lines.join("\n")}`;
|
|
|
1179
1147
|
}
|
|
1180
1148
|
});
|
|
1181
1149
|
}
|
|
1182
|
-
var memoryPartitionRememberSchema = z.object({
|
|
1183
|
-
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".'),
|
|
1184
|
-
category: z.string().min(1).max(40).describe(
|
|
1185
|
-
'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.'
|
|
1186
|
-
),
|
|
1187
|
-
community: z.string().min(1).max(60).describe(
|
|
1188
|
-
'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). Always present; never a specific entity, product, or title \u2014 a show/work title like "breaking-bad" is a hub, never a community.'
|
|
1189
|
-
),
|
|
1190
|
-
subject: z.string().min(1).max(40).describe(
|
|
1191
|
-
'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.'
|
|
1192
|
-
),
|
|
1193
|
-
node: z.string().min(1).max(120).describe(
|
|
1194
|
-
'The lowercase SINGULAR aspect the fact addresses under its hub \u2014 the NODE tier, e.g. "base building" under "project zomboid", "ryzen 9950x3d" under "amd". Reuse existing labels whenever they fit; never pluralized, never a sentence.'
|
|
1195
|
-
),
|
|
1196
|
-
icon: z.string().min(1).max(64).optional().describe(
|
|
1197
|
-
'Lucide icon name for a label you are CREATING in this call (attached to the deepest NEW label: subject first, then community, then category). Only from the curated taxonomy icon set (e.g. "gamepad-2", "book-open", "paw-print"); omit entirely when you adopt existing labels or no icon fits.'
|
|
1198
|
-
),
|
|
1199
|
-
tags: z.array(z.string().min(1).max(40)).max(8).optional().describe(
|
|
1200
|
-
'Optional topic labels (lowercase, reusable, NARROW \u2014 entity/product/game names) so future recall can filter by topic, e.g. ["contacts", "sam"], ["amd"], ["stellar blade"].'
|
|
1201
|
-
)
|
|
1202
|
-
});
|
|
1203
|
-
function createMemoryPartitionRememberTool(deps) {
|
|
1204
|
-
return tool({
|
|
1205
|
-
description: 'Store into the user\'s fact partition (memory-partition) \u2014 OBJECTIVE facts only: notable external-world facts about subjects they care about (projects, followed stocks, games, people, past topics), objective details they state as fact (contact info, decisions, constraints, their setup), and objective facts they explicitly ask you to remember. You MUST NOT store subjective user data here \u2014 preferences, interests, likes/dislikes, behavioral traits, or internal states ("the user likes\u2026") belong to the cognition tier (memory-cognition-remember). Storing gathered knowledge is expected \u2014 do not wait for an explicit "remember" instruction. This memory outlives the conversation and is recalled later with memory-partition-recall. STORAGE MECHANICS: each record is embedded as a whole and matched sentence-by-sentence at recall time \u2014 write ONE self-contained statement per call (a single dense sentence is fine, subject up front), restating a record verbatim updates it in place, tags are the recall filter vocabulary (lowercase, reusable), and the macro-taxonomy routes each record down its strict chain: `category` one broad PLURAL family label (games, pets, work, health \u2026 \u2014 the cluster tier), `community` one PLURAL sub-family under it (survival games, action rpgs \u2026), `subject` the SINGULAR entity the fact is about (project zomboid, amd, sam \u2026 \u2014 the hub tier), `node` the SINGULAR aspect under the hub (base building, ryzen 9950x3d \u2026 \u2014 the node tier). ALL FOUR labels are always required; reuse existing labels whenever they fit.',
|
|
1206
|
-
inputSchema: memoryPartitionRememberSchema,
|
|
1207
|
-
execute: async ({ text, tags, category, community, subject, node, icon }) => {
|
|
1208
|
-
try {
|
|
1209
|
-
const id = await deps.storeRecord({
|
|
1210
|
-
memoryPartition: deps.scope.memoryPartition,
|
|
1211
|
-
sessionId: deps.scope.sessionId,
|
|
1212
|
-
conversationId: deps.scope.conversationId,
|
|
1213
|
-
requestId: deps.scope.requestId,
|
|
1214
|
-
text,
|
|
1215
|
-
tags,
|
|
1216
|
-
category,
|
|
1217
|
-
community,
|
|
1218
|
-
subject,
|
|
1219
|
-
node,
|
|
1220
|
-
icon
|
|
1221
|
-
});
|
|
1222
|
-
return { stored: true, id };
|
|
1223
|
-
} catch (error) {
|
|
1224
|
-
return {
|
|
1225
|
-
stored: false,
|
|
1226
|
-
error: error instanceof Error ? error.message : "memory store failed"
|
|
1227
|
-
};
|
|
1228
|
-
}
|
|
1229
|
-
}
|
|
1230
|
-
});
|
|
1231
|
-
}
|
|
1232
1150
|
var memoryTaxonomyProbeSchema = z.object({
|
|
1233
1151
|
kind: z.enum(["cluster", "community", "hub", "node"]).describe(
|
|
1234
1152
|
"Which tier to probe. Top-down order: cluster (PLURAL family noun) \u2192 community (PLURAL sub-family under one cluster) \u2192 hub (SINGULAR main subject entity) \u2192 node (SINGULAR aspect under the hub)."
|
|
@@ -2013,4 +1931,4 @@ function createYoutubeVideoSearch(deps) {
|
|
|
2013
1931
|
});
|
|
2014
1932
|
}
|
|
2015
1933
|
|
|
2016
|
-
export { BRIGHT_DATA_TIMEOUT_MS, HEADERS, MIN_IMAGE_HEIGHT, MIN_IMAGE_WIDTH, RECENCY_DESCRIPTION, SEARCH_RETRIES, SEARCH_TIMEOUT_MS, SOURCE, STANDALONE_QUERY_DESCRIPTION, STANDALONE_QUERY_TOOL_CLAUSE, applyLocaleParams, applyRecencyParam, brightDataImageSearchSchema, brightDataNewsSearchSchema, brightDataPlacesSearchSchema, brightDataShoppingSearchSchema, brightDataVideoSearchSchema, brightDataWebSearchSchema, brightDataWebpageScrapeSchema, buildGoogleUrl, buildYoutubeThumbnailUrl, createBrightDataImageSearch, createBrightDataNewsSearch, createBrightDataPlacesSearch, createBrightDataShoppingSearch, createBrightDataVideoSearch, createBrightDataWebSearch, createBrightDataWebpageScrape, createEncyclopediaReadTool, createEncyclopediaSearchTool, createMemoryCognitionDeleteTool, createMemoryCognitionForgetTool,
|
|
1934
|
+
export { BRIGHT_DATA_TIMEOUT_MS, HEADERS, MIN_IMAGE_HEIGHT, MIN_IMAGE_WIDTH, RECENCY_DESCRIPTION, SEARCH_RETRIES, SEARCH_TIMEOUT_MS, SOURCE, STANDALONE_QUERY_DESCRIPTION, STANDALONE_QUERY_TOOL_CLAUSE, applyLocaleParams, applyRecencyParam, brightDataImageSearchSchema, brightDataNewsSearchSchema, brightDataPlacesSearchSchema, brightDataShoppingSearchSchema, brightDataVideoSearchSchema, brightDataWebSearchSchema, brightDataWebpageScrapeSchema, buildGoogleUrl, buildYoutubeThumbnailUrl, createBrightDataImageSearch, createBrightDataNewsSearch, createBrightDataPlacesSearch, createBrightDataShoppingSearch, createBrightDataVideoSearch, createBrightDataWebSearch, createBrightDataWebpageScrape, createEncyclopediaReadTool, createEncyclopediaSearchTool, createMemoryCognitionDeleteTool, createMemoryCognitionForgetTool, createMemoryPartitionDeleteTool, createMemoryPartitionRecallTool, createMemoryTaxonomyProbeTool, createSerperBusinessReviewsSearch, createSerperImageSearch, createSerperNewsSearch, createSerperPlacesSearch, createSerperShoppingSearch, createSerperVideoSearch, createSerperWebSearch, createSerperWebpageScrape, createVariantRequestTool, createWebFetchTool, createYoutubeVideoSearch, encyclopediaReadSchema, encyclopediaSearchSchema, engineEnabled, extractArticleText, fetchWithTimeout, isGoogleHostUrl, localizedQuerySuffix, meetsMinimumImageDimensions, memoryCognitionDeleteSchema, memoryCognitionForgetSchema, memoryPartitionDeleteSchema, memoryPartitionRecallSchema, memoryTaxonomyProbeSchema, pickMerchantResult, requestBrightData, resolveSerperShopOfferLinks, serperBusinessReviewsSearchSchema, serperImageSearchSchema, serperNewsSearchSchema, serperPlacesSearchSchema, serperShoppingSearchSchema, serperVideoSearchSchema, serperWebSearchSchema, serperWebpageScrapeSchema, storeHostToken, summarizeContent, summarizeFound, summarizeResults, tbsSizeLabelForPixels, variantRequestSchema, webFetchSchema, withSummary, youtubeVideoSearchSchema };
|
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": "1.0.
|
|
4
|
+
"version": "1.0.9",
|
|
5
5
|
"packageManager": "pnpm@12.17.0",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
@@ -55,12 +55,12 @@
|
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@mozilla/readability": "^0.6.0",
|
|
58
|
-
"@triplef/helpers": "^1.6.
|
|
59
|
-
"linkedom": "^0.18.
|
|
60
|
-
"turndown": "^7.2.
|
|
58
|
+
"@triplef/helpers": "^1.6.3",
|
|
59
|
+
"linkedom": "^0.18.15",
|
|
60
|
+
"turndown": "^7.2.5"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
|
-
"ai": "^7.0.
|
|
63
|
+
"ai": "^7.0.162",
|
|
64
64
|
"zod": "^4.6.7"
|
|
65
65
|
},
|
|
66
66
|
"peerDependenciesMeta": {
|
|
@@ -74,25 +74,25 @@
|
|
|
74
74
|
"@types/eslint": "^9.6.1",
|
|
75
75
|
"@types/node": "^26.6.6",
|
|
76
76
|
"@types/turndown": "^5.0.6",
|
|
77
|
-
"@vitest/coverage-v8": "5.0
|
|
77
|
+
"@vitest/coverage-v8": "5.1.0",
|
|
78
78
|
"depcheck": "^1.4.7",
|
|
79
|
-
"dependency-cruiser": "^18.7.
|
|
80
|
-
"eslint": "^10.
|
|
79
|
+
"dependency-cruiser": "^18.7.2",
|
|
80
|
+
"eslint": "^10.14.0",
|
|
81
81
|
"eslint-config-prettier": "^10.1.8",
|
|
82
82
|
"eslint-plugin-prettier": "^5.5.7",
|
|
83
83
|
"eslint-plugin-simple-import-sort": "^14.0.0",
|
|
84
84
|
"eslint-plugin-sonarjs": "^4.2.2",
|
|
85
|
-
"globals": "^17.
|
|
85
|
+
"globals": "^17.14.0",
|
|
86
86
|
"husky": "^9.1.7",
|
|
87
87
|
"jiti": "^2.7.0",
|
|
88
88
|
"lint-staged": "^17.6.0",
|
|
89
89
|
"npm-check-updates": "^23.1.1",
|
|
90
90
|
"prettier": "^3.9.10",
|
|
91
|
-
"rimraf": "^6.1.
|
|
91
|
+
"rimraf": "^6.1.4",
|
|
92
92
|
"ts-unused-exports": "^11.0.1",
|
|
93
93
|
"tsup": "^8.5.1",
|
|
94
94
|
"typescript": "^5.9.3",
|
|
95
95
|
"typescript-eslint": "^8.72.1",
|
|
96
|
-
"vitest": "^5.0
|
|
96
|
+
"vitest": "^5.1.0"
|
|
97
97
|
}
|
|
98
98
|
}
|