@hiper2d/ai-agents 0.4.0 → 0.4.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.mjs CHANGED
@@ -1105,14 +1105,18 @@ var SupportedAiModels = {
1105
1105
  // encrypted reasoning items replayed across turns like Grok. 'medium' is pinned as the
1106
1106
  // game default: turns are short and every reasoning token bills as output.
1107
1107
  // Temperature: Meta documents the model as tuned to its 1.0 default.
1108
- // Speed/tags: unmeasured until the first live run no tag rather than a guess.
1108
+ // Speed: measured 2026-09-12 at medium effort9.6s on a full-context day-2 vote, 4-8s on
1109
+ // short turns (reasoning ≈ 90% of output tokens). That is the untagged middle band by the
1110
+ // grading above; tagged 'slow' anyway by decision so players expect a wait. Price-wise it
1111
+ // is neither cheap nor expensive.
1109
1112
  [LLM_CONSTANTS.MUSE_SPARK]: {
1110
1113
  displayName: "Muse Spark 1.3",
1111
1114
  modelApiName: "muse-spark-1.3",
1112
1115
  apiKeyName: API_KEY_CONSTANTS.META,
1113
1116
  hasThinking: true,
1114
1117
  temperature: 1,
1115
- reasoningEffort: "medium"
1118
+ reasoningEffort: "medium",
1119
+ tags: ["slow"]
1116
1120
  }
1117
1121
  };
1118
1122
  function createCatalog(overrides = {}) {
@@ -4854,7 +4858,16 @@ ${schemaDescription}`;
4854
4858
  try {
4855
4859
  const reasoningItems = JSON.parse(msg.metaEncryptedReasoning);
4856
4860
  if (Array.isArray(reasoningItems)) {
4857
- input.push(...reasoningItems);
4861
+ for (const item of reasoningItems) {
4862
+ if (item?.encrypted_content) {
4863
+ input.push({
4864
+ type: "reasoning",
4865
+ ...item.id ? { id: item.id } : {},
4866
+ summary: Array.isArray(item.summary) ? item.summary : [],
4867
+ encrypted_content: item.encrypted_content
4868
+ });
4869
+ }
4870
+ }
4858
4871
  }
4859
4872
  } catch {
4860
4873
  this.logger(`Failed to parse stored encrypted reasoning, replaying message without it`);