mastracode 0.17.0 → 0.17.1-alpha.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/CHANGELOG.md +24 -0
- package/dist/agents/workspace.d.ts.map +1 -1
- package/dist/{chunk-RNZC2YDX.cjs → chunk-BHK3OFI3.cjs} +16 -6
- package/dist/chunk-BHK3OFI3.cjs.map +1 -0
- package/dist/{chunk-SIB7A4ID.js → chunk-DKXKWB6R.js} +3 -3
- package/dist/{chunk-U7JDYUZB.cjs.map → chunk-DKXKWB6R.js.map} +1 -1
- package/dist/{chunk-U7JDYUZB.cjs → chunk-YHAWCGB7.cjs} +3 -3
- package/dist/chunk-YHAWCGB7.cjs.map +1 -0
- package/dist/{chunk-FK3SHILL.js → chunk-ZYG7WE7V.js} +16 -6
- package/dist/chunk-ZYG7WE7V.js.map +1 -0
- package/dist/cli.cjs +7 -7
- package/dist/cli.js +2 -2
- package/dist/index.cjs +3 -3
- package/dist/index.js +1 -1
- package/dist/tui.cjs +11 -11
- package/dist/tui.js +1 -1
- package/package.json +10 -10
- package/dist/chunk-FK3SHILL.js.map +0 -1
- package/dist/chunk-RNZC2YDX.cjs.map +0 -1
- package/dist/chunk-SIB7A4ID.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# mastracode
|
|
2
2
|
|
|
3
|
+
## 0.17.1-alpha.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Added the OS temp directory (/tmp) as a default allowed workspace path so the agent can use it as a scratchpad without requesting access each time ([#16094](https://github.com/mastra-ai/mastra/pull/16094))
|
|
8
|
+
|
|
9
|
+
- Only log skill directories that actually exist on disk, reducing startup noise ([#16068](https://github.com/mastra-ai/mastra/pull/16068))
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`c05c9a1`](https://github.com/mastra-ai/mastra/commit/c05c9a13230988cef6d438a62f37760f31927bc7), [`e24aacb`](https://github.com/mastra-ai/mastra/commit/e24aacba07bd66f5d95b636dc24016fca26b52cf), [`c721164`](https://github.com/mastra-ai/mastra/commit/c7211643f7ac861f83b19a3757cc921487fc9d75), [`1b55954`](https://github.com/mastra-ai/mastra/commit/1b559541c1e08a10e49d01ffc51a634dfc37a286), [`319a94c`](https://github.com/mastra-ai/mastra/commit/319a94c6bf1f8f4ac8249a40b0c99b9c1e0d4598), [`5adc55e`](https://github.com/mastra-ai/mastra/commit/5adc55e63407be8ee977914957d68bcc2a075ceb), [`5adc55e`](https://github.com/mastra-ai/mastra/commit/5adc55e63407be8ee977914957d68bcc2a075ceb), [`5adc55e`](https://github.com/mastra-ai/mastra/commit/5adc55e63407be8ee977914957d68bcc2a075ceb), [`70017d7`](https://github.com/mastra-ai/mastra/commit/70017d72ab741b5d7040e2a15c251a317782e39e), [`e4942bc`](https://github.com/mastra-ai/mastra/commit/e4942bc7fdc903572f7d84f26d5e15f9d39c763d), [`39a3768`](https://github.com/mastra-ai/mastra/commit/39a3768a980c31ee689c675aa0015609f76191c4)]:
|
|
12
|
+
- @mastra/core@1.32.0-alpha.1
|
|
13
|
+
- @mastra/memory@1.17.5-alpha.0
|
|
14
|
+
- @mastra/libsql@1.10.0-alpha.0
|
|
15
|
+
- @mastra/pg@1.10.0-alpha.0
|
|
16
|
+
- @mastra/observability@1.11.1-alpha.1
|
|
17
|
+
|
|
18
|
+
## 0.17.1-alpha.0
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies [[`6dcd65f`](https://github.com/mastra-ai/mastra/commit/6dcd65f2a34069e6dc43ba35f1d11119b9b40bef), [`1c2dda8`](https://github.com/mastra-ai/mastra/commit/1c2dda805fbfccc0abf55d4cb20cc34402dc3f0c), [`568777e`](https://github.com/mastra-ai/mastra/commit/568777ea8af77a672270b448dfd3996f9e75a964), [`568777e`](https://github.com/mastra-ai/mastra/commit/568777ea8af77a672270b448dfd3996f9e75a964)]:
|
|
23
|
+
- @mastra/core@1.31.1-alpha.0
|
|
24
|
+
- @mastra/observability@1.11.1-alpha.0
|
|
25
|
+
- @mastra/mcp@1.6.1-alpha.0
|
|
26
|
+
|
|
3
27
|
## 0.17.0
|
|
4
28
|
|
|
5
29
|
### Minor Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../../src/agents/workspace.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAkHlF,eAAO,MAAM,UAAU,UAOtB,CAAC;AAEF,eAAO,MAAM,iBAAiB,UAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../../src/agents/workspace.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAkHlF,eAAO,MAAM,UAAU,UAOtB,CAAC;AAEF,eAAO,MAAM,iBAAiB,UAAa,CAAC;AA6B5C,wBAAgB,mBAAmB,CAAC,EAAE,cAAc,EAAE,MAAM,EAAE,EAAE;IAAE,cAAc,EAAE,cAAc,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,uDAgElH"}
|
|
@@ -539,6 +539,11 @@ var skillPaths = [
|
|
|
539
539
|
agentSkillsGlobalPath
|
|
540
540
|
];
|
|
541
541
|
var allowedSkillPaths = skillPaths;
|
|
542
|
+
var DEFAULT_ALLOWED_PATHS = [os__namespace.default.tmpdir(), "/tmp"].reduce((acc, p) => {
|
|
543
|
+
const resolved = path__namespace.default.resolve(p);
|
|
544
|
+
if (!acc.includes(resolved)) acc.push(resolved);
|
|
545
|
+
return acc;
|
|
546
|
+
}, []);
|
|
542
547
|
var WORKSPACE_ID_PREFIX = "mastra-code-workspace";
|
|
543
548
|
function detectPackageRunner(projectPath) {
|
|
544
549
|
if (fs3.existsSync(path.join(projectPath, "pnpm-lock.yaml"))) return "pnpm dlx";
|
|
@@ -558,7 +563,11 @@ function getDynamicWorkspace({ requestContext, mastra: mastra2 }) {
|
|
|
558
563
|
const projectPath = path__namespace.default.resolve(rawProjectPath);
|
|
559
564
|
const workspaceId = `${WORKSPACE_ID_PREFIX}-${projectPath}`;
|
|
560
565
|
const sandboxPaths = state?.sandboxAllowedPaths ?? [];
|
|
561
|
-
const allowedPaths = [
|
|
566
|
+
const allowedPaths = [
|
|
567
|
+
...allowedSkillPaths,
|
|
568
|
+
...DEFAULT_ALLOWED_PATHS,
|
|
569
|
+
...sandboxPaths.map((p) => path__namespace.default.resolve(p))
|
|
570
|
+
];
|
|
562
571
|
const isPlanMode = modeId === "plan";
|
|
563
572
|
const planModeTools = {
|
|
564
573
|
mastra_workspace_write_file: { ...chunkOBFBUWOR_cjs.TOOL_NAME_OVERRIDES.mastra_workspace_write_file, enabled: false },
|
|
@@ -576,7 +585,7 @@ function getDynamicWorkspace({ requestContext, mastra: mastra2 }) {
|
|
|
576
585
|
return existing;
|
|
577
586
|
}
|
|
578
587
|
const userLsp = chunkP6EKFEJB_cjs.loadSettings().lsp ?? {};
|
|
579
|
-
const mcModulePath = path.join(path.dirname(url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-
|
|
588
|
+
const mcModulePath = path.join(path.dirname(url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-BHK3OFI3.cjs', document.baseURI).href)))), "..");
|
|
580
589
|
const lspConfig = {
|
|
581
590
|
...userLsp,
|
|
582
591
|
packageRunner: userLsp.packageRunner || detectPackageRunner(projectPath),
|
|
@@ -599,9 +608,10 @@ function getDynamicWorkspace({ requestContext, mastra: mastra2 }) {
|
|
|
599
608
|
lsp: lspConfig
|
|
600
609
|
});
|
|
601
610
|
}
|
|
602
|
-
|
|
611
|
+
var loadedSkillPaths = skillPaths.filter((p) => fs3.existsSync(p));
|
|
612
|
+
if (loadedSkillPaths.length > 0) {
|
|
603
613
|
console.info(`Skills loaded from:`);
|
|
604
|
-
for (const p of
|
|
614
|
+
for (const p of loadedSkillPaths) {
|
|
605
615
|
console.info(` - ${p}`);
|
|
606
616
|
}
|
|
607
617
|
}
|
|
@@ -3696,5 +3706,5 @@ async function createMastraCode(config) {
|
|
|
3696
3706
|
|
|
3697
3707
|
exports.createAuthStorage = createAuthStorage;
|
|
3698
3708
|
exports.createMastraCode = createMastraCode;
|
|
3699
|
-
//# sourceMappingURL=chunk-
|
|
3700
|
-
//# sourceMappingURL=chunk-
|
|
3709
|
+
//# sourceMappingURL=chunk-BHK3OFI3.cjs.map
|
|
3710
|
+
//# sourceMappingURL=chunk-BHK3OFI3.cjs.map
|