@intelligo-dev/mastra 1.0.0-beta.2 → 1.0.0-beta.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/README.md +22 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/package.json +11 -4
package/README.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# @intelligo-dev/mastra
|
|
2
|
+
|
|
3
|
+
An optional bridge from a native Mastra agent to the execution boundary.
|
|
4
|
+
|
|
5
|
+
Part of [Intelligo](https://github.com/intelligo-mn/framework), an application
|
|
6
|
+
framework and operational platform for vertical AI SaaS products. This package
|
|
7
|
+
is published from that repository and is not meant to be used on its own.
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
pnpm add @intelligo-dev/mastra
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
`@mastra/core` is an optional peer dependency and **nothing here imports it** —
|
|
16
|
+
the bridge stays removable and the agent stays native (ADR-0003). What this
|
|
17
|
+
package adds is the recording: `runWithExecution` opens an execution, runs the
|
|
18
|
+
agent, and settles what it cost.
|
|
19
|
+
|
|
20
|
+
## Licence
|
|
21
|
+
|
|
22
|
+
Apache-2.0
|
package/dist/index.d.ts
CHANGED
|
@@ -69,7 +69,7 @@ export type RunWithExecutionOptions = {
|
|
|
69
69
|
executions: Executions;
|
|
70
70
|
workspaceId: string;
|
|
71
71
|
userId?: string | null;
|
|
72
|
-
/** Product-defined verb, e.g. "
|
|
72
|
+
/** Product-defined verb, e.g. "support.reply". */
|
|
73
73
|
capability: string;
|
|
74
74
|
/** Model the run intends to use — sizes the credit hold. */
|
|
75
75
|
model?: string;
|
|
@@ -90,8 +90,8 @@ export declare class ExecutionRefusedError extends Error {
|
|
|
90
90
|
*
|
|
91
91
|
* ```ts
|
|
92
92
|
* const result = await runWithExecution(
|
|
93
|
-
* { executions, workspaceId, userId, capability: "
|
|
94
|
-
* () =>
|
|
93
|
+
* { executions, workspaceId, userId, capability: "support.reply" },
|
|
94
|
+
* () => supportAgent.generate(messages) // native Mastra, untouched
|
|
95
95
|
* );
|
|
96
96
|
* ```
|
|
97
97
|
*
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAE5D;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wCAAwC;IACxC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,GAAG;QAAE,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACtC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,YAAY,GAAG,SAAS;;;;EASzD;AAED,2EAA2E;AAC3E,wBAAgB,SAAS,CACvB,MAAM,EAAE,YAAY,GAAG,SAAS,GAC/B,MAAM,GAAG,SAAS,CAKpB;AAED,MAAM,MAAM,uBAAuB,GAAG;IACpC,UAAU,EAAE,UAAU,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,
|
|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a,qBAAsB,SAAQ,KAAK;IAI5C,QAAQ,CAAC,WAAW,EAAE,MAAM;IAC5B,oEAAoE;IACpE,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM;IAL9B,QAAQ,CAAC,IAAI,uBAAuB;gBAElC,OAAO,EAAE,MAAM,EACN,WAAW,EAAE,MAAM;IAC5B,oEAAoE;IAC3D,UAAU,CAAC,EAAE,MAAM,YAAA;CAK/B;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,gBAAgB,CAAC,CAAC,SAAS,YAAY,EAC3D,OAAO,EAAE,uBAAuB,EAChC,GAAG,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GACpB,OAAO,CAAC,CAAC,CAAC,CAiCZ;AAED;;;;;;;;GAQG;AACH,wBAAsB,mBAAmB,CAAC,CAAC,SAAS,YAAY,EAC9D,OAAO,EAAE,uBAAuB,EAChC,KAAK,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GACtB,OAAO,CAAC;IACT,MAAM,EAAE,CAAC,CAAC;IACV,MAAM,EAAE,CAAC,MAAM,CAAC,EAAE,YAAY,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACjD,KAAK,EAAE,CAAC,KAAK,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1C,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC,CAsCD"}
|
package/dist/index.js
CHANGED
|
@@ -65,8 +65,8 @@ export class ExecutionRefusedError extends Error {
|
|
|
65
65
|
*
|
|
66
66
|
* ```ts
|
|
67
67
|
* const result = await runWithExecution(
|
|
68
|
-
* { executions, workspaceId, userId, capability: "
|
|
69
|
-
* () =>
|
|
68
|
+
* { executions, workspaceId, userId, capability: "support.reply" },
|
|
69
|
+
* () => supportAgent.generate(messages) // native Mastra, untouched
|
|
70
70
|
* );
|
|
71
71
|
* ```
|
|
72
72
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intelligo-dev/mastra",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.5",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@intelligo-dev/executions": "1.0.0-beta.
|
|
22
|
+
"@intelligo-dev/executions": "1.0.0-beta.5"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"@mastra/core": ">=1.0.0"
|
|
@@ -34,14 +34,21 @@
|
|
|
34
34
|
"typescript": "^5.7.2"
|
|
35
35
|
},
|
|
36
36
|
"files": [
|
|
37
|
-
"dist"
|
|
37
|
+
"dist",
|
|
38
|
+
"LICENSE",
|
|
39
|
+
"README.md",
|
|
40
|
+
"!dist/**/*.tsbuildinfo"
|
|
38
41
|
],
|
|
39
42
|
"publishConfig": {
|
|
40
43
|
"access": "public"
|
|
41
44
|
},
|
|
45
|
+
"engines": {
|
|
46
|
+
"node": ">=22"
|
|
47
|
+
},
|
|
48
|
+
"sideEffects": false,
|
|
42
49
|
"scripts": {
|
|
43
50
|
"type-check": "tsc --noEmit",
|
|
44
51
|
"lint": "eslint .",
|
|
45
|
-
"build": "tsc -p tsconfig.build.json"
|
|
52
|
+
"build": "tsc -p tsconfig.build.json && node ../../scripts/fix-esm-extensions.mjs dist"
|
|
46
53
|
}
|
|
47
54
|
}
|