mastracode 0.21.2-alpha.3 → 0.21.2-alpha.5

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,20 @@
1
1
  # mastracode
2
2
 
3
+ ## 0.21.2-alpha.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`a18775a`](https://github.com/mastra-ai/mastra/commit/a18775a693172546ee2378d39b67d4e32895b251), [`1baf2d1`](https://github.com/mastra-ai/mastra/commit/1baf2d152c6881338ff8f114633d5316fe13dd15), [`8260167`](https://github.com/mastra-ai/mastra/commit/8260167431f98400f3acef4bbb7bd6027efd7a4b)]:
8
+ - @mastra/core@1.38.0-alpha.5
9
+ - @mastra/duckdb@1.4.1-alpha.0
10
+
11
+ ## 0.21.2-alpha.4
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [[`50ed00c`](https://github.com/mastra-ai/mastra/commit/50ed00caa914a85969b33de83f26b48e328ef641), [`9283971`](https://github.com/mastra-ai/mastra/commit/928397157009b4aef4d5fdf3a0a273cb371beb55), [`0bf2d93`](https://github.com/mastra-ai/mastra/commit/0bf2d932d20e2936f2d9abb8c0a86e24fbc97ec6), [`94dfef6`](https://github.com/mastra-ai/mastra/commit/94dfef6e2bf19a88467ea3940afcbce88a433f0f), [`a122f79`](https://github.com/mastra-ai/mastra/commit/a122f79427ae225ec79c7b2ed46278da48d04b17), [`4c02027`](https://github.com/mastra-ai/mastra/commit/4c020277235eaa6b1dc957c90ad0639eef213992), [`6855012`](https://github.com/mastra-ai/mastra/commit/685501247cc4717506f3e89beed03509d63a5370), [`7fef31c`](https://github.com/mastra-ai/mastra/commit/7fef31c0d2a6d362a43a647a8a4f6ab893758a23), [`7fef31c`](https://github.com/mastra-ai/mastra/commit/7fef31c0d2a6d362a43a647a8a4f6ab893758a23)]:
16
+ - @mastra/core@1.38.0-alpha.4
17
+
3
18
  ## 0.21.2-alpha.3
4
19
 
5
20
  ### Patch Changes
@@ -0,0 +1,41 @@
1
+ import type { Agent } from '@mastra/core/agent';
2
+ import { Harness as HarnessLegacy } from '@mastra/core/harness';
3
+ import type { HarnessConfig, HarnessMode as HarnessModeLegacy, HarnessThread } from '@mastra/core/harness';
4
+ import type { Session, HarnessMode, Harness } from '@mastra/core/harness/v1';
5
+ type CloneSessionOptions = {
6
+ sessionId?: string;
7
+ threadId?: string;
8
+ resourceId?: string;
9
+ parentSessionId?: string;
10
+ origin?: 'top-level' | 'subagent-tool';
11
+ modeId?: string;
12
+ modelId?: string;
13
+ };
14
+ export declare function v1ModeToLegacy<TState = {}>(mode: HarnessMode, agent: Agent): HarnessModeLegacy<TState>;
15
+ export declare class HarnessCompat<TState = {}> extends HarnessLegacy<TState> {
16
+ #private;
17
+ constructor(args: HarnessConfig<TState>, harnessV1: Harness<HarnessMode[]>);
18
+ switchThread({ threadId }: {
19
+ threadId: string;
20
+ }): Promise<void>;
21
+ listThreads(options?: {
22
+ allResources?: boolean;
23
+ includeForkedSubagents?: boolean;
24
+ }): Promise<HarnessThread[]>;
25
+ cloneSession(opts?: CloneSessionOptions): Promise<Session>;
26
+ cloneThread({ sourceThreadId, title, resourceId, }?: {
27
+ sourceThreadId?: string;
28
+ title?: string;
29
+ resourceId?: string;
30
+ }): Promise<HarnessThread>;
31
+ getCurrentMode(): HarnessModeLegacy<TState>;
32
+ /**
33
+ * Switch to a different mode.
34
+ * Aborts any in-progress generation and switches to the mode's default model.
35
+ */
36
+ switchMode({ modeId }: {
37
+ modeId: string;
38
+ }): Promise<void>;
39
+ }
40
+ export {};
41
+ //# sourceMappingURL=HarnessCompat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HarnessCompat.d.ts","sourceRoot":"","sources":["../src/HarnessCompat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM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M,CAAC;QACxB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,UAAU,CAAC,EAAE,MAAM,CAAC;KAChB,GAAG,OAAO,CAAC,aAAa,CAAC;IAiC/B,cAAc,IAAI,iBAAiB,CAAC,MAAM,CAAC;IAc3C;;;OAGG;IACG,UAAU,CAAC,EAAE,MAAM,EAAE,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAchE"}
@@ -1195,7 +1195,7 @@ function getInstallCommand(pm, version) {
1195
1195
  }
1196
1196
  function getCurrentVersion() {
1197
1197
  {
1198
- return "0.21.2-alpha.3";
1198
+ return "0.21.2-alpha.5";
1199
1199
  }
1200
1200
  }
1201
1201
  async function fetchLatestVersion() {
@@ -18606,5 +18606,5 @@ exports.createTUIState = createTUIState;
18606
18606
  exports.detectTerminalTheme = detectTerminalTheme;
18607
18607
  exports.formatOMStatus = formatOMStatus;
18608
18608
  exports.getCurrentVersion = getCurrentVersion;
18609
- //# sourceMappingURL=chunk-NSW6VKHO.cjs.map
18610
- //# sourceMappingURL=chunk-NSW6VKHO.cjs.map
18609
+ //# sourceMappingURL=chunk-5BXGJDOU.cjs.map
18610
+ //# sourceMappingURL=chunk-5BXGJDOU.cjs.map