utilitas 1999.1.14 → 1999.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/utilitas.lite.mjs +1 -1
- package/dist/utilitas.lite.mjs.map +1 -1
- package/lib/alan.mjs +2 -0
- package/lib/manifest.mjs +1 -1
- package/lib/utilitas.mjs +1 -1
- package/package.json +1 -1
package/lib/alan.mjs
CHANGED
|
@@ -96,6 +96,7 @@ const [sessionType, aiType]
|
|
|
96
96
|
= [`${name.toUpperCase()}-SESSION`, `${name.toUpperCase()}-AI`];
|
|
97
97
|
const [newSessionId, newAiId]
|
|
98
98
|
= [sessionType, aiType].map(type => () => createUoid({ type }));
|
|
99
|
+
const _NO_RENDER = ['INSTRUCTIONS', 'MODELS', 'DEFAULT_MODELS'];
|
|
99
100
|
const chatConfig = { sessions: new Map(), systemPrompt: INSTRUCTIONS };
|
|
100
101
|
const tokenSafe = count => Math.ceil(count * tokenSafeRatio);
|
|
101
102
|
const renderText = (t, o) => _renderText(t, { extraCodeBlock: 0, ...o || {} });
|
|
@@ -1452,6 +1453,7 @@ const analyzeSessions = async (sessionIds, options) => {
|
|
|
1452
1453
|
export default init;
|
|
1453
1454
|
export {
|
|
1454
1455
|
_NEED,
|
|
1456
|
+
_NO_RENDER,
|
|
1455
1457
|
CLOUD_37_SONNET,
|
|
1456
1458
|
CODE_INTERPRETER,
|
|
1457
1459
|
DEEPSEEK_R1,
|
package/lib/manifest.mjs
CHANGED
package/lib/utilitas.mjs
CHANGED
|
@@ -742,7 +742,7 @@ const getFuncParams = (func) => {
|
|
|
742
742
|
const analyzeModule = (obj) => {
|
|
743
743
|
assertModule(obj);
|
|
744
744
|
const [keys, result] = [Object.getOwnPropertyNames(obj).filter(
|
|
745
|
-
x => ![
|
|
745
|
+
x => !(obj?._NO_RENDER || []).includes(x)
|
|
746
746
|
), {}];
|
|
747
747
|
keys.sort();
|
|
748
748
|
keys.map(key => result[key] = {
|