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/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
@@ -1,7 +1,7 @@
1
1
  const manifest = {
2
2
  "name": "utilitas",
3
3
  "description": "Just another common utility for JavaScript.",
4
- "version": "1999.1.14",
4
+ "version": "1999.1.15",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/utilitas",
7
7
  "main": "index.mjs",
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 => !['INSTRUCTIONS', 'MODELS'].includes(x)
745
+ x => !(obj?._NO_RENDER || []).includes(x)
746
746
  ), {}];
747
747
  keys.sort();
748
748
  keys.map(key => result[key] = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "utilitas",
3
3
  "description": "Just another common utility for JavaScript.",
4
- "version": "1999.1.14",
4
+ "version": "1999.1.15",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/utilitas",
7
7
  "main": "index.mjs",