@sentientui/core 0.29.0 → 0.29.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index-local.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var l=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var E=Object.prototype.hasOwnProperty;var I=(
|
|
1
|
+
"use strict";var l=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var E=Object.prototype.hasOwnProperty;var I=(e,n)=>{for(var s in n)l(e,s,{get:n[s],enumerable:!0})},N=(e,n,s,o)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of m(n))!E.call(e,r)&&r!==s&&l(e,r,{get:()=>n[r],enumerable:!(o=p(n,r))||o.enumerable});return e};var S=e=>N(l({},"__esModule",{value:!0}),e);var R={};I(R,{LOCAL_CONFIDENCE:()=>g,LOCAL_ENGINE_AVAILABLE:()=>O,LOCAL_ENGINE_SENTINEL:()=>L,createLocalEngine:()=>v,inferSectionTypes:()=>f});module.exports=S(R);var t=require("@sentientui/policy"),L="SENTIENT_LOCAL_ENGINE",O=!0,g=.5,y=[["pricing","pricing"],["hero","hero"],["faq","faq"],["cta","cta"],["trust","trust"],["social","social_proof"],["testimonial","social_proof"],["feature","features"],["comparison","comparison"],["compare","comparison"],["nav","navigation"]];function f(e){let n=new Map;for(let s of e){let o=s.toLowerCase(),r=y.find(([c])=>o.includes(c));n.set(s,r?r[1]:"generic")}return n}function A(e,n){if(n){if(t.PERSONAS.includes(n))return n;if(n===t.UNKNOWN_PERSONA)return t.UNKNOWN_PERSONA}return t.PERSONAS[(0,t.fnv1a)(e)%t.PERSONAS.length]}function _(e,n,s){let o=`${e}:${n}`;if(s.arms&&s.arms.length>=2)return(0,t.pickDeterministicArm)(o,s.id,s.arms);if(s.dims){let r={};for(let[c,a]of Object.entries(s.dims)){if(!a||a.length<2)return null;r[c]=(0,t.pickDeterministicArm)(o,`${s.id}.${c}`,[...a])}return r}return null}function v(e){let n=A(e.sessionId,e.forcedPersona);return{decide(s){var a,d;let o=s.sections&&s.sections.length>0?(0,t.previewOrderForPersona)(s.sections,f(s.sections),n):null,r={};for(let i of(a=s.components)!=null?a:[])i.variantIds&&i.variantIds.length>0&&(r[i.id]=(0,t.pickDeterministicArm)(e.sessionId,i.id,i.variantIds));let c={};for(let i of(d=s.slots)!=null?d:[]){let u=_(e.sessionId,n,i);u!==null&&(c[i.id]=u)}return{layoutOrder:o,assignments:r,slots:c,persona:n,confidence:g}}}}0&&(module.exports={LOCAL_CONFIDENCE,LOCAL_ENGINE_AVAILABLE,LOCAL_ENGINE_SENTINEL,createLocalEngine,inferSectionTypes});
|
|
2
2
|
//# sourceMappingURL=index-local.js.map
|
package/dist/index-local.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index-local.ts"],"sourcesContent":["/**\n * @sentientui/core/local — the keyless local decision engine.\n *\n * Loaded ONLY under the `development` export condition (see the \"./local\"\n * exports map in package.json). Production bundles resolve this specifier to\n * `index-local-stub.ts`, so none of this code ships to production.\n *\n * Deterministic by construction: the same (sessionId, persona, declaration)\n * always yields the same decision — across calls, instances, tabs, and the\n * server/client boundary. No I/O, no randomness, no mutable state.\n */\nimport {\n PERSONAS,\n UNKNOWN_PERSONA,\n
|
|
1
|
+
{"version":3,"sources":["../src/index-local.ts"],"sourcesContent":["/**\n * @sentientui/core/local — the keyless local decision engine.\n *\n * Loaded ONLY under the `development` export condition (see the \"./local\"\n * exports map in package.json). Production bundles resolve this specifier to\n * `index-local-stub.ts`, so none of this code ships to production.\n *\n * Deterministic by construction: the same (sessionId, persona, declaration)\n * always yields the same decision — across calls, instances, tabs, and the\n * server/client boundary. No I/O, no randomness, no mutable state.\n */\nimport {\n PERSONAS,\n UNKNOWN_PERSONA,\n previewOrderForPersona,\n fnv1a,\n pickDeterministicArm,\n type PersonaKey,\n} from '@sentientui/policy';\nimport type { DecideOutcome, SlotDeclInput, SlotResult } from './index.js';\n\n/**\n * Sentinel embedded so build-level tests can assert the production bundle\n * physically excludes the local engine (scripts/verify-local-exclusion.ts).\n * Do not rename without updating that script.\n */\nexport const LOCAL_ENGINE_SENTINEL = 'SENTIENT_LOCAL_ENGINE';\n\n/** True on the real engine module, false on the production stub. */\nexport const LOCAL_ENGINE_AVAILABLE = true;\n\n/** Simulated decisions carry a fixed mid confidence (band 'medium'). */\nexport const LOCAL_CONFIDENCE = 0.5;\n\n/**\n * Maps a section id to a semantic section type by substring so\n * `previewOrderForPersona` gets a useful sectionTypes map without a DOM graph.\n * First matching rule wins, in exactly this order.\n */\nconst SECTION_TYPE_RULES: Array<[substr: string, type: string]> = [\n ['pricing', 'pricing'],\n ['hero', 'hero'],\n ['faq', 'faq'],\n ['cta', 'cta'],\n ['trust', 'trust'],\n ['social', 'social_proof'],\n ['testimonial', 'social_proof'],\n ['feature', 'features'],\n ['comparison', 'comparison'],\n ['compare', 'comparison'],\n ['nav', 'navigation'],\n];\n\nexport function inferSectionTypes(sections: string[]): Map<string, string> {\n const types = new Map<string, string>();\n for (const id of sections) {\n const lower = id.toLowerCase();\n const rule = SECTION_TYPE_RULES.find(([substr]) => lower.includes(substr));\n types.set(id, rule ? rule[1] : 'generic');\n }\n return types;\n}\n\nfunction resolvePersona(sessionId: string, forcedPersona?: string): PersonaKey {\n if (forcedPersona) {\n if ((PERSONAS as readonly string[]).includes(forcedPersona)) return forcedPersona as PersonaKey;\n if (forcedPersona === UNKNOWN_PERSONA) return UNKNOWN_PERSONA;\n }\n return PERSONAS[fnv1a(sessionId) % PERSONAS.length];\n}\n\nfunction decideSlot(sessionId: string, persona: PersonaKey, slot: SlotDeclInput): SlotResult | null {\n // Persona-salted session key — implements the spec's\n // stableHash(sessionId, slotId, sortedArms, forcedPersona) with the pinned\n // pickDeterministicArm signature, so forcing a persona visibly changes\n // tokens and arrangements.\n const saltedSession = `${sessionId}:${persona}`;\n if (slot.arms && slot.arms.length >= 2) {\n return pickDeterministicArm(saltedSession, slot.id, slot.arms);\n }\n if (slot.dims) {\n const result: Record<string, string> = {};\n for (const [dim, values] of Object.entries(slot.dims)) {\n if (!values || values.length < 2) return null;\n result[dim] = pickDeterministicArm(saltedSession, `${slot.id}.${dim}`, [...values]);\n }\n return result;\n }\n return null;\n}\n\nexport function createLocalEngine(opts: { sessionId: string; forcedPersona?: string }): {\n decide(input: {\n sections?: string[];\n components?: Array<{ id: string; variantIds?: string[] }>;\n slots?: SlotDeclInput[];\n }): DecideOutcome;\n} {\n const persona = resolvePersona(opts.sessionId, opts.forcedPersona);\n return {\n decide(input) {\n const layoutOrder =\n input.sections && input.sections.length > 0\n ? previewOrderForPersona(input.sections, inferSectionTypes(input.sections), persona)\n : null;\n\n const assignments: Record<string, string> = {};\n for (const c of input.components ?? []) {\n if (c.variantIds && c.variantIds.length > 0) {\n assignments[c.id] = pickDeterministicArm(opts.sessionId, c.id, c.variantIds);\n }\n }\n\n const slots: Record<string, SlotResult> = {};\n for (const s of input.slots ?? []) {\n const result = decideSlot(opts.sessionId, persona, s);\n if (result !== null) slots[s.id] = result;\n }\n\n return { layoutOrder, assignments, slots, persona, confidence: LOCAL_CONFIDENCE };\n },\n };\n}\n"],"mappings":"yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,sBAAAE,EAAA,2BAAAC,EAAA,0BAAAC,EAAA,sBAAAC,EAAA,sBAAAC,IAAA,eAAAC,EAAAP,GAWA,IAAAQ,EAOO,8BAQMJ,EAAwB,wBAGxBD,EAAyB,GAGzBD,EAAmB,GAO1BO,EAA4D,CAChE,CAAC,UAAW,SAAS,EACrB,CAAC,OAAQ,MAAM,EACf,CAAC,MAAO,KAAK,EACb,CAAC,MAAO,KAAK,EACb,CAAC,QAAS,OAAO,EACjB,CAAC,SAAU,cAAc,EACzB,CAAC,cAAe,cAAc,EAC9B,CAAC,UAAW,UAAU,EACtB,CAAC,aAAc,YAAY,EAC3B,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SAAUrB,EAAkBqB,EAAM,QAAQ,EAAGP,CAAO,EACjF,KAEAW,EAAsC,CAAC,EAC7C,QAAWC,KAAKJ,EAAAD,EAAM,aAAN,KAAAC,EAAoB,CAAC,EAC/BI,EAAE,YAAcA,EAAE,WAAW,OAAS,IACxCD,EAAYC,EAAE,EAAE,KAAI,wBAAqBN,EAAK,UAAWM,EAAE,GAAIA,EAAE,UAAU,GAI/E,IAAMC,EAAoC,CAAC,EAC3C,QAAWC,KAAKL,EAAAF,EAAM,QAAN,KAAAE,EAAe,CAAC,EAAG,CACjC,IAAMN,EAASJ,EAAWO,EAAK,UAAWN,EAASc,CAAC,EAChDX,IAAW,OAAMU,EAAMC,EAAE,EAAE,EAAIX,EACrC,CAEA,MAAO,CAAE,YAAAO,EAAa,YAAAC,EAAa,MAAAE,EAAO,QAAAb,EAAS,WAAYlB,CAAiB,CAClF,CACF,CACF","names":["index_local_exports","__export","LOCAL_CONFIDENCE","LOCAL_ENGINE_AVAILABLE","LOCAL_ENGINE_SENTINEL","createLocalEngine","inferSectionTypes","__toCommonJS","import_policy","SECTION_TYPE_RULES","sections","types","id","lower","rule","substr","resolvePersona","sessionId","forcedPersona","decideSlot","persona","slot","saltedSession","result","dim","values","opts","input","_a","_b","layoutOrder","assignments","c","slots","s"]}
|
package/dist/index-local.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"./chunk-TMCGHANO.mjs";import{PERSONAS as a,UNKNOWN_PERSONA as g,
|
|
1
|
+
import"./chunk-TMCGHANO.mjs";import{PERSONAS as a,UNKNOWN_PERSONA as g,previewOrderForPersona as f,fnv1a as p,pickDeterministicArm as l}from"@sentientui/policy";var O="SENTIENT_LOCAL_ENGINE",y=!0,m=.5,E=[["pricing","pricing"],["hero","hero"],["faq","faq"],["cta","cta"],["trust","trust"],["social","social_proof"],["testimonial","social_proof"],["feature","features"],["comparison","comparison"],["compare","comparison"],["nav","navigation"]];function I(e){let s=new Map;for(let n of e){let i=n.toLowerCase(),t=E.find(([o])=>i.includes(o));s.set(n,t?t[1]:"generic")}return s}function N(e,s){if(s){if(a.includes(s))return s;if(s===g)return g}return a[p(e)%a.length]}function S(e,s,n){let i=`${e}:${s}`;if(n.arms&&n.arms.length>=2)return l(i,n.id,n.arms);if(n.dims){let t={};for(let[o,c]of Object.entries(n.dims)){if(!c||c.length<2)return null;t[o]=l(i,`${n.id}.${o}`,[...c])}return t}return null}function A(e){let s=N(e.sessionId,e.forcedPersona);return{decide(n){var c,d;let i=n.sections&&n.sections.length>0?f(n.sections,I(n.sections),s):null,t={};for(let r of(c=n.components)!=null?c:[])r.variantIds&&r.variantIds.length>0&&(t[r.id]=l(e.sessionId,r.id,r.variantIds));let o={};for(let r of(d=n.slots)!=null?d:[]){let u=S(e.sessionId,s,r);u!==null&&(o[r.id]=u)}return{layoutOrder:i,assignments:t,slots:o,persona:s,confidence:m}}}}export{m as LOCAL_CONFIDENCE,y as LOCAL_ENGINE_AVAILABLE,O as LOCAL_ENGINE_SENTINEL,A as createLocalEngine,I as inferSectionTypes};
|
|
2
2
|
//# sourceMappingURL=index-local.mjs.map
|
package/dist/index-local.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index-local.ts"],"sourcesContent":["/**\n * @sentientui/core/local — the keyless local decision engine.\n *\n * Loaded ONLY under the `development` export condition (see the \"./local\"\n * exports map in package.json). Production bundles resolve this specifier to\n * `index-local-stub.ts`, so none of this code ships to production.\n *\n * Deterministic by construction: the same (sessionId, persona, declaration)\n * always yields the same decision — across calls, instances, tabs, and the\n * server/client boundary. No I/O, no randomness, no mutable state.\n */\nimport {\n PERSONAS,\n UNKNOWN_PERSONA,\n
|
|
1
|
+
{"version":3,"sources":["../src/index-local.ts"],"sourcesContent":["/**\n * @sentientui/core/local — the keyless local decision engine.\n *\n * Loaded ONLY under the `development` export condition (see the \"./local\"\n * exports map in package.json). Production bundles resolve this specifier to\n * `index-local-stub.ts`, so none of this code ships to production.\n *\n * Deterministic by construction: the same (sessionId, persona, declaration)\n * always yields the same decision — across calls, instances, tabs, and the\n * server/client boundary. No I/O, no randomness, no mutable state.\n */\nimport {\n PERSONAS,\n UNKNOWN_PERSONA,\n previewOrderForPersona,\n fnv1a,\n pickDeterministicArm,\n type PersonaKey,\n} from '@sentientui/policy';\nimport type { DecideOutcome, SlotDeclInput, SlotResult } from './index.js';\n\n/**\n * Sentinel embedded so build-level tests can assert the production bundle\n * physically excludes the local engine (scripts/verify-local-exclusion.ts).\n * Do not rename without updating that script.\n */\nexport const LOCAL_ENGINE_SENTINEL = 'SENTIENT_LOCAL_ENGINE';\n\n/** True on the real engine module, false on the production stub. */\nexport const LOCAL_ENGINE_AVAILABLE = true;\n\n/** Simulated decisions carry a fixed mid confidence (band 'medium'). */\nexport const LOCAL_CONFIDENCE = 0.5;\n\n/**\n * Maps a section id to a semantic section type by substring so\n * `previewOrderForPersona` gets a useful sectionTypes map without a DOM graph.\n * First matching rule wins, in exactly this order.\n */\nconst SECTION_TYPE_RULES: Array<[substr: string, type: string]> = [\n ['pricing', 'pricing'],\n ['hero', 'hero'],\n ['faq', 'faq'],\n ['cta', 'cta'],\n ['trust', 'trust'],\n ['social', 'social_proof'],\n ['testimonial', 'social_proof'],\n ['feature', 'features'],\n ['comparison', 'comparison'],\n ['compare', 'comparison'],\n ['nav', 'navigation'],\n];\n\nexport function inferSectionTypes(sections: string[]): Map<string, string> {\n const types = new Map<string, string>();\n for (const id of sections) {\n const lower = id.toLowerCase();\n const rule = SECTION_TYPE_RULES.find(([substr]) => lower.includes(substr));\n types.set(id, rule ? rule[1] : 'generic');\n }\n return types;\n}\n\nfunction resolvePersona(sessionId: string, forcedPersona?: string): PersonaKey {\n if (forcedPersona) {\n if ((PERSONAS as readonly string[]).includes(forcedPersona)) return forcedPersona as PersonaKey;\n if (forcedPersona === UNKNOWN_PERSONA) return UNKNOWN_PERSONA;\n }\n return PERSONAS[fnv1a(sessionId) % PERSONAS.length];\n}\n\nfunction decideSlot(sessionId: string, persona: PersonaKey, slot: SlotDeclInput): SlotResult | null {\n // Persona-salted session key — implements the spec's\n // stableHash(sessionId, slotId, sortedArms, forcedPersona) with the pinned\n // pickDeterministicArm signature, so forcing a persona visibly changes\n // tokens and arrangements.\n const saltedSession = `${sessionId}:${persona}`;\n if (slot.arms && slot.arms.length >= 2) {\n return pickDeterministicArm(saltedSession, slot.id, slot.arms);\n }\n if (slot.dims) {\n const result: Record<string, string> = {};\n for (const [dim, values] of Object.entries(slot.dims)) {\n if (!values || values.length < 2) return null;\n result[dim] = pickDeterministicArm(saltedSession, `${slot.id}.${dim}`, [...values]);\n }\n return result;\n }\n return null;\n}\n\nexport function createLocalEngine(opts: { sessionId: string; forcedPersona?: string }): {\n decide(input: {\n sections?: string[];\n components?: Array<{ id: string; variantIds?: string[] }>;\n slots?: SlotDeclInput[];\n }): DecideOutcome;\n} {\n const persona = resolvePersona(opts.sessionId, opts.forcedPersona);\n return {\n decide(input) {\n const layoutOrder =\n input.sections && input.sections.length > 0\n ? previewOrderForPersona(input.sections, inferSectionTypes(input.sections), persona)\n : null;\n\n const assignments: Record<string, string> = {};\n for (const c of input.components ?? []) {\n if (c.variantIds && c.variantIds.length > 0) {\n assignments[c.id] = pickDeterministicArm(opts.sessionId, c.id, c.variantIds);\n }\n }\n\n const slots: Record<string, SlotResult> = {};\n for (const s of input.slots ?? []) {\n const result = decideSlot(opts.sessionId, persona, s);\n if (result !== null) slots[s.id] = result;\n }\n\n return { layoutOrder, assignments, slots, persona, confidence: LOCAL_CONFIDENCE };\n },\n };\n}\n"],"mappings":"6BAWA,OACE,YAAAA,EACA,mBAAAC,EACA,0BAAAC,EACA,SAAAC,EACA,wBAAAC,MAEK,qBAQA,IAAMC,EAAwB,wBAGxBC,EAAyB,GAGzBC,EAAmB,GAO1BC,EAA4D,CAChE,CAAC,UAAW,SAAS,EACrB,CAAC,OAAQ,MAAM,EACf,CAAC,MAAO,KAAK,EACb,CAAC,MAAO,KAAK,EACb,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K,aAAa,EACjE,MAAO,CACL,OAAOC,EAAO,CApGlB,IAAAC,EAAAC,EAqGM,IAAMC,EACJH,EAAM,UAAYA,EAAM,SAAS,OAAS,EACtC1B,EAAuB0B,EAAM,SAAUnB,EAAkBmB,EAAM,QAAQ,EAAGR,CAAO,EACjF,KAEAY,EAAsC,CAAC,EAC7C,QAAWC,KAAKJ,EAAAD,EAAM,aAAN,KAAAC,EAAoB,CAAC,EAC/BI,EAAE,YAAcA,EAAE,WAAW,OAAS,IACxCD,EAAYC,EAAE,EAAE,EAAI7B,EAAqBuB,EAAK,UAAWM,EAAE,GAAIA,EAAE,UAAU,GAI/E,IAAMC,EAAoC,CAAC,EAC3C,QAAWC,KAAKL,EAAAF,EAAM,QAAN,KAAAE,EAAe,CAAC,EAAG,CACjC,IAAMP,EAASJ,EAAWQ,EAAK,UAAWP,EAASe,CAAC,EAChDZ,IAAW,OAAMW,EAAMC,EAAE,EAAE,EAAIZ,EACrC,CAEA,MAAO,CAAE,YAAAQ,EAAa,YAAAC,EAAa,MAAAE,EAAO,QAAAd,EAAS,WAAYb,CAAiB,CAClF,CACF,CACF","names":["PERSONAS","UNKNOWN_PERSONA","previewOrderForPersona","fnv1a","pickDeterministicArm","LOCAL_ENGINE_SENTINEL","LOCAL_ENGINE_AVAILABLE","LOCAL_CONFIDENCE","SECTION_TYPE_RULES","inferSectionTypes","sections","types","id","lower","rule","substr","resolvePersona","sessionId","forcedPersona","decideSlot","persona","slot","saltedSession","result","dim","values","createLocalEngine","opts","input","_a","_b","layoutOrder","assignments","c","slots","s"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentientui/core",
|
|
3
|
-
"version": "0.29.
|
|
3
|
+
"version": "0.29.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"llms.txt"
|
|
72
72
|
],
|
|
73
73
|
"dependencies": {
|
|
74
|
-
"@sentientui/policy": "0.
|
|
74
|
+
"@sentientui/policy": "0.10.0"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"@types/node": "^22.10.2",
|