mastracode 0.20.1-alpha.3 → 0.20.1-alpha.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # mastracode
2
2
 
3
+ ## 0.20.1-alpha.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`b7286f4`](https://github.com/mastra-ai/mastra/commit/b7286f4308267f5fd70e6bfee10dba9472640906), [`a481027`](https://github.com/mastra-ai/mastra/commit/a481027b549ba1018414990c8f045eaee7b9f413), [`801baa0`](https://github.com/mastra-ai/mastra/commit/801baa07cccdbaec1d00942a92bdc831111744a2), [`b3c3b18`](https://github.com/mastra-ai/mastra/commit/b3c3b189121489a3a51a8fd8204b569be9a89fe5)]:
8
+ - @mastra/core@1.37.0-alpha.4
9
+
3
10
  ## 0.20.1-alpha.3
4
11
 
5
12
  ### Patch Changes
@@ -1003,7 +1003,7 @@ function getInstallCommand(pm, version) {
1003
1003
  }
1004
1004
  function getCurrentVersion() {
1005
1005
  {
1006
- return "0.20.1-alpha.3";
1006
+ return "0.20.1-alpha.4";
1007
1007
  }
1008
1008
  }
1009
1009
  async function fetchLatestVersion() {
@@ -4199,12 +4199,10 @@ function formatMarker(data) {
4199
4199
  const msgTokens = formatTokens(data.tokensActivated);
4200
4200
  const obsTokens = formatTokens(data.observationTokens);
4201
4201
  const label2 = data.activationCount && data.activationCount > 1 ? `${data.activationCount} observations` : "observations";
4202
- return theme.fg("success", ` \u2713 Activated ${label2}: -${msgTokens} msg tokens, +${obsTokens} obs tokens`);
4203
- }
4204
- case "om_activation_ttl": {
4202
+ const idleSuffix = data.activateAfterIdle !== void 0 ? ` (${formatDuration(data.activateAfterIdle)} idle timeout)` : "";
4205
4203
  return theme.fg(
4206
- "muted",
4207
- ` Idle timeout (${formatDuration(data.activateAfterIdle)}) exceeded by ${formatDuration(data.ttlExpiredMs)}, activating observations`
4204
+ "success",
4205
+ ` \u2713 Activated ${label2}: -${msgTokens} msg tokens, +${obsTokens} obs tokens${idleSuffix}`
4208
4206
  );
4209
4207
  }
4210
4208
  case "om_activation_provider_change": {
@@ -14745,7 +14743,6 @@ function handleOMBufferingStart(ctx, operationType, tokensToBuffer) {
14745
14743
  const { state } = ctx;
14746
14744
  state.activeActivationMarker = void 0;
14747
14745
  state.activeActivationData = void 0;
14748
- state.activeActivationTTLMarker = void 0;
14749
14746
  state.activeActivationProviderChangeMarker = void 0;
14750
14747
  if (state.quietMode) {
14751
14748
  removeChatChild(ctx, state.activeBufferingMarker);
@@ -14801,19 +14798,6 @@ function handleOMBufferingFailed(ctx, operationType, error) {
14801
14798
  }
14802
14799
  function handleOMActivation(ctx, operationType, tokensActivated, observationTokens, triggeredBy, activateAfterIdle, ttlExpiredMs, previousModel, currentModel) {
14803
14800
  const { state } = ctx;
14804
- if (triggeredBy === "ttl" && activateAfterIdle !== void 0 && ttlExpiredMs !== void 0) {
14805
- const ttlData = {
14806
- type: "om_activation_ttl",
14807
- activateAfterIdle,
14808
- ttlExpiredMs
14809
- };
14810
- if (state.activeActivationTTLMarker) {
14811
- state.activeActivationTTLMarker.update(ttlData);
14812
- } else {
14813
- state.activeActivationTTLMarker = new OMMarkerComponent(ttlData);
14814
- addChildBeforeStreaming(ctx, state.activeActivationTTLMarker);
14815
- }
14816
- }
14817
14801
  if (triggeredBy === "provider_change" && previousModel && currentModel) {
14818
14802
  const providerChangeData = {
14819
14803
  type: "om_activation_provider_change",
@@ -14834,12 +14818,14 @@ function handleOMActivation(ctx, operationType, tokensActivated, observationToke
14834
14818
  operationType,
14835
14819
  tokensActivated: previousActivationData.tokensActivated + tokensActivated,
14836
14820
  observationTokens: previousActivationData.observationTokens + observationTokens,
14837
- activationCount: (previousActivationData.activationCount ?? 1) + 1
14821
+ activationCount: (previousActivationData.activationCount ?? 1) + 1,
14822
+ activateAfterIdle: previousActivationData.activateAfterIdle ?? activateAfterIdle
14838
14823
  } : {
14839
14824
  type: "om_activation",
14840
14825
  operationType,
14841
14826
  tokensActivated,
14842
- observationTokens
14827
+ observationTokens,
14828
+ ...triggeredBy === "ttl" && activateAfterIdle !== void 0 ? { activateAfterIdle } : {}
14843
14829
  };
14844
14830
  if (canCombineActivation && state.activeActivationMarker) {
14845
14831
  state.activeActivationMarker.update(activationData);
@@ -17991,5 +17977,5 @@ Would you like to update now?`;
17991
17977
  };
17992
17978
 
17993
17979
  export { AssistantMessageComponent, LoginDialogComponent, LoginSelectorComponent, MastraTUI, ModelSelectorComponent, OMProgressComponent, ToolExecutionComponentEnhanced, UserMessageComponent, createTUIState, detectTerminalTheme, formatOMStatus, getCurrentVersion };
17994
- //# sourceMappingURL=chunk-P4265JLZ.js.map
17995
- //# sourceMappingURL=chunk-P4265JLZ.js.map
17980
+ //# sourceMappingURL=chunk-JMQ7TFZB.js.map
17981
+ //# sourceMappingURL=chunk-JMQ7TFZB.js.map