@superdurable/dex-agents-mastra-cli 0.0.0 → 0.5.0
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/LICENSE +105 -0
- package/README.md +72 -3
- package/dist/src/bin.d.ts +2 -0
- package/dist/src/bin.js +13 -0
- package/dist/src/bin.js.map +1 -0
- package/dist/src/index.d.ts +7 -0
- package/dist/src/index.js +15 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/mastra-harness.d.ts +58 -0
- package/dist/src/mastra-harness.js +92 -0
- package/dist/src/mastra-harness.js.map +1 -0
- package/package.json +49 -5
package/LICENSE
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Super Durable, Inc.
|
|
4
|
+
|
|
5
|
+
Portions of this software are licensed as follows:
|
|
6
|
+
|
|
7
|
+
- Legacy Materials remain under their original licenses as described in
|
|
8
|
+
`LEGACY_NOTICES.md`.
|
|
9
|
+
- Third-Party Materials remain under the licenses provided by their owners.
|
|
10
|
+
- The `docs/` and `examples/` directories are not licensed under the
|
|
11
|
+
Sustainable Use License and retain their existing licensing status.
|
|
12
|
+
- All other material owned or licensable by Super Durable, Inc. is available
|
|
13
|
+
under the Sustainable Use License below.
|
|
14
|
+
|
|
15
|
+
See `LEGACY_NOTICES.md` for the applicable legacy and third-party notices.
|
|
16
|
+
|
|
17
|
+
## Sustainable Use License
|
|
18
|
+
|
|
19
|
+
Version 1.0
|
|
20
|
+
|
|
21
|
+
### Acceptance
|
|
22
|
+
|
|
23
|
+
By using the software, you agree to all of the terms and conditions below.
|
|
24
|
+
|
|
25
|
+
### Copyright License
|
|
26
|
+
|
|
27
|
+
The licensor grants you a non-exclusive, royalty-free, worldwide,
|
|
28
|
+
non-sublicensable, non-transferable license to use, copy, distribute, make
|
|
29
|
+
available, and prepare derivative works of the software, in each case subject
|
|
30
|
+
to the limitations below.
|
|
31
|
+
|
|
32
|
+
### Limitations
|
|
33
|
+
|
|
34
|
+
You may use or modify the software only for your own internal business purposes
|
|
35
|
+
or for non-commercial or personal use. You may distribute the software or
|
|
36
|
+
provide it to others only if you do so free of charge for non-commercial
|
|
37
|
+
purposes. You may not alter, remove, or obscure any licensing, copyright, or
|
|
38
|
+
other notices of the licensor in the software. Any use of the licensor's
|
|
39
|
+
trademarks is subject to applicable law.
|
|
40
|
+
|
|
41
|
+
### Patents
|
|
42
|
+
|
|
43
|
+
The licensor grants you a license, under any patent claims the licensor can
|
|
44
|
+
license, or becomes able to license, to make, have made, use, sell, offer for
|
|
45
|
+
sale, import and have imported the software, in each case subject to the
|
|
46
|
+
limitations and conditions in this license. This license does not cover any
|
|
47
|
+
patent claims that you cause to be infringed by modifications or additions to
|
|
48
|
+
the software.
|
|
49
|
+
|
|
50
|
+
If you or your company make any written claim that the software infringes or
|
|
51
|
+
contributes to infringement of any patent, your patent license for the software
|
|
52
|
+
granted under these terms ends immediately. If your company makes such a claim,
|
|
53
|
+
your patent license ends immediately for work on behalf of your company.
|
|
54
|
+
|
|
55
|
+
### Notices
|
|
56
|
+
|
|
57
|
+
You must ensure that anyone who gets a copy of any part of the software from
|
|
58
|
+
you also gets a copy of these terms. If you modify the software, you must
|
|
59
|
+
include in any modified copies of the software a prominent notice stating that
|
|
60
|
+
you have modified the software.
|
|
61
|
+
|
|
62
|
+
### No Other Rights
|
|
63
|
+
|
|
64
|
+
These terms do not imply any licenses other than those expressly granted in
|
|
65
|
+
these terms.
|
|
66
|
+
|
|
67
|
+
### Termination
|
|
68
|
+
|
|
69
|
+
If you use the software in violation of these terms, such use is not licensed,
|
|
70
|
+
and your license will automatically terminate. If the licensor provides you
|
|
71
|
+
with a notice of your violation, and you cease all violation of this license no
|
|
72
|
+
later than 30 days after you receive that notice, your license will be
|
|
73
|
+
reinstated retroactively. However, if you violate these terms after such
|
|
74
|
+
reinstatement, any additional violation of these terms will cause your license
|
|
75
|
+
to terminate automatically and permanently.
|
|
76
|
+
|
|
77
|
+
### No Liability
|
|
78
|
+
|
|
79
|
+
As far as the law allows, the software comes as is, without any warranty or
|
|
80
|
+
condition, and the licensor will not be liable to you for any damages arising
|
|
81
|
+
out of these terms or the use or nature of the software, under any kind of
|
|
82
|
+
legal claim.
|
|
83
|
+
|
|
84
|
+
### Definitions
|
|
85
|
+
|
|
86
|
+
The "licensor" is the entity offering these terms.
|
|
87
|
+
|
|
88
|
+
The "software" is the software the licensor makes available under these terms,
|
|
89
|
+
including any portion of it.
|
|
90
|
+
|
|
91
|
+
"You" refers to the individual or entity agreeing to these terms.
|
|
92
|
+
|
|
93
|
+
"Your company" is any legal entity, sole proprietorship, or other kind of
|
|
94
|
+
organization that you work for, plus all organizations that have control over,
|
|
95
|
+
are under the control of, or are under common control with that organization.
|
|
96
|
+
Control means ownership of substantially all the assets of an entity, or the
|
|
97
|
+
power to direct its management and policies by vote, contract, or otherwise.
|
|
98
|
+
Control can be direct or indirect.
|
|
99
|
+
|
|
100
|
+
"Your license" is the license granted to you for the software under these
|
|
101
|
+
terms.
|
|
102
|
+
|
|
103
|
+
"Use" means anything you do with the software requiring your license.
|
|
104
|
+
|
|
105
|
+
"Trademark" means trademarks, service marks, and similar rights.
|
package/README.md
CHANGED
|
@@ -1,6 +1,75 @@
|
|
|
1
1
|
# @superdurable/dex-agents-mastra-cli
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
`@superdurable/dex-agents-mastra-cli` provides the `dex-agents-mastra`
|
|
4
|
+
command. It runs a [Mastra](https://mastra.ai) agent as a durable Dex agent
|
|
5
|
+
session and chats with it in your terminal. The shared CLI core,
|
|
6
|
+
[`@superdurable/dex-agents-cli-core`](../core/README.md), starts or reuses
|
|
7
|
+
`dexcli dev`, connects the connectors MCP server, offers the local tools, and
|
|
8
|
+
runs the Worker. This package only builds the agent with the
|
|
9
|
+
[Mastra adapter](../../../typescript/mastra/README.md).
|
|
5
10
|
|
|
6
|
-
|
|
11
|
+
## Running it
|
|
12
|
+
|
|
13
|
+
The command needs Node.js 22 or 24 and a provider API key:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
export OPENAI_API_KEY=sk-...
|
|
17
|
+
npx -p @superdurable/dex-agents-mastra-cli dex-agents-mastra
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
The first run asks the `init` questions and writes
|
|
21
|
+
`~/.dex/agents/mastra.yaml`. Then type a message. Approve or reject tool calls
|
|
22
|
+
with `y` or `n`, and type `/exit` to leave. The session stays in Dex, and the
|
|
23
|
+
command prints the `--resume` line that continues it. See the
|
|
24
|
+
[CLI core README](../core/README.md) for every subcommand and option, and
|
|
25
|
+
[`agents/cli`](../../README.md) for the configuration file.
|
|
26
|
+
|
|
27
|
+
## Models and keys
|
|
28
|
+
|
|
29
|
+
The model defaults to `openai/gpt-5.2`; set `model` in the file or pass
|
|
30
|
+
`--model` to change it. The model ID goes to Mastra's model router unchanged,
|
|
31
|
+
so any `<provider>/<model>` ID that Mastra knows works, such as
|
|
32
|
+
`anthropic/claude-sonnet-4-5`. Mastra reads the provider's standard
|
|
33
|
+
environment variable, such as `OPENAI_API_KEY` (with optional
|
|
34
|
+
`OPENAI_BASE_URL`) or `ANTHROPIC_API_KEY`. The command never prints or stores
|
|
35
|
+
a key.
|
|
36
|
+
|
|
37
|
+
The package pins `@mastra/core` to the version the Mastra adapter's lockfile
|
|
38
|
+
tests, and `ci.sh` fails when the two lockfiles differ. Mastra brings its own
|
|
39
|
+
copies of `@ai-sdk/provider`, 3.x and 4.x, for its model router; the command
|
|
40
|
+
does not call the AI SDK itself.
|
|
41
|
+
|
|
42
|
+
## Configuration and tools
|
|
43
|
+
|
|
44
|
+
The `mastra` section has no options yet, and any key in it is a configuration
|
|
45
|
+
error.
|
|
46
|
+
|
|
47
|
+
The agent offers the connectors MCP server's tools and the CLI core's
|
|
48
|
+
[local tools](../core/README.md#local-tools), each call in its own tool Step
|
|
49
|
+
with the CLI core's approval rules. The Mastra agent's model and instructions
|
|
50
|
+
are functions that Mastra calls in every model call, so each turn uses the
|
|
51
|
+
model and instructions its session settings resolve to.
|
|
52
|
+
|
|
53
|
+
## Images
|
|
54
|
+
|
|
55
|
+
`/image <path>` attaches an image file to the next message. The command gives
|
|
56
|
+
the Mastra adapter the media store of `media.store`, so the model sees the
|
|
57
|
+
image, and images that tools return go to the same store. See
|
|
58
|
+
[Images](../../README.md#images).
|
|
59
|
+
|
|
60
|
+
## Development
|
|
61
|
+
|
|
62
|
+
`ci.sh` builds the core, the Mastra adapter, and the CLI core, which this
|
|
63
|
+
package installs from the repository, then typechecks and runs the integration
|
|
64
|
+
tests against a private `dexcli dev`:
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
cd agents/cli/typescript/mastra
|
|
68
|
+
DEXCLI=/path/to/dexcli ./ci.sh
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
`dex-server-zd` must sit next to `dexcli`. The tests run the command as a child
|
|
72
|
+
process with a private home and an explicit environment allow list. Mastra's
|
|
73
|
+
OpenAI model calls `test/fixtures/mock-responses-api.ts`, a scripted Responses
|
|
74
|
+
API on 127.0.0.1, through `OPENAI_BASE_URL`, and the connector tools come from
|
|
75
|
+
`test/fixtures/fake-connectors-mcp-server.ts`.
|
package/dist/src/bin.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Copyright (c) 2026 Super Durable, Inc.
|
|
3
|
+
//
|
|
4
|
+
// Licensed under the Sustainable Use License 1.0.
|
|
5
|
+
// You may not use this file except in compliance with the License.
|
|
6
|
+
// See the LICENSE file in the repository root.
|
|
7
|
+
//
|
|
8
|
+
// SPDX-License-Identifier: LicenseRef-Sustainable-Use-1.0
|
|
9
|
+
import { processAgentCliIo, runAgentCli } from "@superdurable/dex-agents-cli-core";
|
|
10
|
+
import { mastraHarness } from "./mastra-harness.js";
|
|
11
|
+
// Exit explicitly: open connections can keep Node running after the chat ends.
|
|
12
|
+
process.exit(await runAgentCli(mastraHarness, processAgentCliIo()));
|
|
13
|
+
//# sourceMappingURL=bin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bin.js","sourceRoot":"","sources":["../../src/bin.ts"],"names":[],"mappings":";AACA,yCAAyC;AACzC,EAAE;AACF,kDAAkD;AAClD,mEAAmE;AACnE,+CAA+C;AAC/C,EAAE;AACF,0DAA0D;AAE1D,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAEnF,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,+EAA+E;AAC/E,OAAO,CAAC,IAAI,CAAC,MAAM,WAAW,CAAC,aAAa,EAAE,iBAAiB,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `dex-agents-mastra` command: a Mastra agent in the terminal. It builds the agent session Flow with the Mastra
|
|
3
|
+
* adapter and runs it with the shared Dex Agents CLI core.
|
|
4
|
+
*
|
|
5
|
+
* @packageDocumentation
|
|
6
|
+
*/
|
|
7
|
+
export { createMastraCliSessionFlow, defaultInstructions, defaultMastraModel, mastraCliFlowType, mastraHarness, validateMastraSection, } from "./mastra-harness.js";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Copyright (c) 2026 Super Durable, Inc.
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Sustainable Use License 1.0.
|
|
4
|
+
// You may not use this file except in compliance with the License.
|
|
5
|
+
// See the LICENSE file in the repository root.
|
|
6
|
+
//
|
|
7
|
+
// SPDX-License-Identifier: LicenseRef-Sustainable-Use-1.0
|
|
8
|
+
/**
|
|
9
|
+
* The `dex-agents-mastra` command: a Mastra agent in the terminal. It builds the agent session Flow with the Mastra
|
|
10
|
+
* adapter and runs it with the shared Dex Agents CLI core.
|
|
11
|
+
*
|
|
12
|
+
* @packageDocumentation
|
|
13
|
+
*/
|
|
14
|
+
export { createMastraCliSessionFlow, defaultInstructions, defaultMastraModel, mastraCliFlowType, mastraHarness, validateMastraSection, } from "./mastra-harness.js";
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC,EAAE;AACF,kDAAkD;AAClD,mEAAmE;AACnE,+CAA+C;AAC/C,EAAE;AACF,0DAA0D;AAE1D;;;;;GAKG;AAEH,OAAO,EACL,0BAA0B,EAC1B,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EACjB,aAAa,EACb,qBAAqB,GACtB,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { type AgentHarness, type HarnessContext } from "@superdurable/dex-agents-cli-core";
|
|
2
|
+
import { createMastraAgentSessionFlow } from "@superdurable/dex-agents-mastra";
|
|
3
|
+
/**
|
|
4
|
+
* The base Flow type of the command's sessions, before the CLI core namespaces it.
|
|
5
|
+
*
|
|
6
|
+
* @since 0.5.0
|
|
7
|
+
*/
|
|
8
|
+
export declare const mastraCliFlowType = "DexAgentsMastraCliSession";
|
|
9
|
+
/**
|
|
10
|
+
* The model the command uses when the configuration file sets none.
|
|
11
|
+
*
|
|
12
|
+
* @since 0.5.0
|
|
13
|
+
*/
|
|
14
|
+
export declare const defaultMastraModel = "openai/gpt-5.2";
|
|
15
|
+
/**
|
|
16
|
+
* The instructions the agent gets when the configuration sets none.
|
|
17
|
+
*
|
|
18
|
+
* @since 0.5.0
|
|
19
|
+
*/
|
|
20
|
+
export declare const defaultInstructions: string;
|
|
21
|
+
/**
|
|
22
|
+
* The `dex-agents-mastra` command: a Mastra agent in the terminal.
|
|
23
|
+
*
|
|
24
|
+
* The agent offers the CLI core's connector and local tools. The model ID is any Mastra model router ID, such as
|
|
25
|
+
* `openai/gpt-5.2` or `anthropic/claude-sonnet-4-5`, and Mastra reads the provider's standard API key variable.
|
|
26
|
+
* Each turn uses the model and instructions its session settings resolve to. The `mastra` section has no options
|
|
27
|
+
* yet; any key in it is a configuration error.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```ts
|
|
31
|
+
* import { processAgentCliIo, runAgentCli } from "@superdurable/dex-agents-cli-core";
|
|
32
|
+
* import { mastraHarness } from "@superdurable/dex-agents-mastra-cli";
|
|
33
|
+
*
|
|
34
|
+
* process.exit(await runAgentCli(mastraHarness, processAgentCliIo()));
|
|
35
|
+
* ```
|
|
36
|
+
* @since 0.5.0
|
|
37
|
+
*/
|
|
38
|
+
export declare const mastraHarness: AgentHarness;
|
|
39
|
+
/**
|
|
40
|
+
* Builds the Mastra agent session Flow from the effective configuration.
|
|
41
|
+
*
|
|
42
|
+
* The agent's model and instructions are functions, which Mastra calls in every model call, so each turn gets its
|
|
43
|
+
* own.
|
|
44
|
+
*
|
|
45
|
+
* @param context - The configuration, workspace, and tool sources.
|
|
46
|
+
* @returns The Flow, with `context.flowType` as its type.
|
|
47
|
+
* @throws {ConfigError} When the `mastra` section has a key.
|
|
48
|
+
* @since 0.5.0
|
|
49
|
+
*/
|
|
50
|
+
export declare function createMastraCliSessionFlow(context: HarnessContext): ReturnType<typeof createMastraAgentSessionFlow>;
|
|
51
|
+
/**
|
|
52
|
+
* Rejects every key of the `mastra` section, which has no options yet.
|
|
53
|
+
*
|
|
54
|
+
* @param options - The section, `{}` when the file omits it.
|
|
55
|
+
* @throws {ConfigError} A `schema` error with the first key's JSON Pointer.
|
|
56
|
+
* @since 0.5.0
|
|
57
|
+
*/
|
|
58
|
+
export declare function validateMastraSection(options: Readonly<Record<string, unknown>>): void;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
// Copyright (c) 2026 Super Durable, Inc.
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Sustainable Use License 1.0.
|
|
4
|
+
// You may not use this file except in compliance with the License.
|
|
5
|
+
// See the LICENSE file in the repository root.
|
|
6
|
+
//
|
|
7
|
+
// SPDX-License-Identifier: LicenseRef-Sustainable-Use-1.0
|
|
8
|
+
import { Agent } from "@mastra/core/agent";
|
|
9
|
+
import { ConfigError } from "@superdurable/dex-agents-cli-core";
|
|
10
|
+
import { createMastraAgentSessionFlow } from "@superdurable/dex-agents-mastra";
|
|
11
|
+
/**
|
|
12
|
+
* The base Flow type of the command's sessions, before the CLI core namespaces it.
|
|
13
|
+
*
|
|
14
|
+
* @since 0.5.0
|
|
15
|
+
*/
|
|
16
|
+
export const mastraCliFlowType = "DexAgentsMastraCliSession";
|
|
17
|
+
/**
|
|
18
|
+
* The model the command uses when the configuration file sets none.
|
|
19
|
+
*
|
|
20
|
+
* @since 0.5.0
|
|
21
|
+
*/
|
|
22
|
+
export const defaultMastraModel = "openai/gpt-5.2";
|
|
23
|
+
/**
|
|
24
|
+
* The instructions the agent gets when the configuration sets none.
|
|
25
|
+
*
|
|
26
|
+
* @since 0.5.0
|
|
27
|
+
*/
|
|
28
|
+
export const defaultInstructions = "You are a helpful assistant. Use your tools to work with the files and commands in your workspace and with " +
|
|
29
|
+
"the connected services.";
|
|
30
|
+
/**
|
|
31
|
+
* The `dex-agents-mastra` command: a Mastra agent in the terminal.
|
|
32
|
+
*
|
|
33
|
+
* The agent offers the CLI core's connector and local tools. The model ID is any Mastra model router ID, such as
|
|
34
|
+
* `openai/gpt-5.2` or `anthropic/claude-sonnet-4-5`, and Mastra reads the provider's standard API key variable.
|
|
35
|
+
* Each turn uses the model and instructions its session settings resolve to. The `mastra` section has no options
|
|
36
|
+
* yet; any key in it is a configuration error.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* import { processAgentCliIo, runAgentCli } from "@superdurable/dex-agents-cli-core";
|
|
41
|
+
* import { mastraHarness } from "@superdurable/dex-agents-mastra-cli";
|
|
42
|
+
*
|
|
43
|
+
* process.exit(await runAgentCli(mastraHarness, processAgentCliIo()));
|
|
44
|
+
* ```
|
|
45
|
+
* @since 0.5.0
|
|
46
|
+
*/
|
|
47
|
+
export const mastraHarness = {
|
|
48
|
+
name: "mastra",
|
|
49
|
+
configSection: "mastra",
|
|
50
|
+
flowType: mastraCliFlowType,
|
|
51
|
+
defaultModel: defaultMastraModel,
|
|
52
|
+
createSessionFlow: (context) => createMastraCliSessionFlow(context),
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Builds the Mastra agent session Flow from the effective configuration.
|
|
56
|
+
*
|
|
57
|
+
* The agent's model and instructions are functions, which Mastra calls in every model call, so each turn gets its
|
|
58
|
+
* own.
|
|
59
|
+
*
|
|
60
|
+
* @param context - The configuration, workspace, and tool sources.
|
|
61
|
+
* @returns The Flow, with `context.flowType` as its type.
|
|
62
|
+
* @throws {ConfigError} When the `mastra` section has a key.
|
|
63
|
+
* @since 0.5.0
|
|
64
|
+
*/
|
|
65
|
+
export function createMastraCliSessionFlow(context) {
|
|
66
|
+
validateMastraSection(context.harnessOptions);
|
|
67
|
+
const agent = new Agent({
|
|
68
|
+
id: "assistant",
|
|
69
|
+
name: "Assistant",
|
|
70
|
+
instructions: () => context.currentTurn().instructions ?? defaultInstructions,
|
|
71
|
+
model: () => context.currentTurn().model,
|
|
72
|
+
});
|
|
73
|
+
return createMastraAgentSessionFlow(agent, context.flowType, {
|
|
74
|
+
toolSources: context.toolSources,
|
|
75
|
+
...(context.mediaStore === undefined ? {} : { mediaStore: context.mediaStore }),
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Rejects every key of the `mastra` section, which has no options yet.
|
|
80
|
+
*
|
|
81
|
+
* @param options - The section, `{}` when the file omits it.
|
|
82
|
+
* @throws {ConfigError} A `schema` error with the first key's JSON Pointer.
|
|
83
|
+
* @since 0.5.0
|
|
84
|
+
*/
|
|
85
|
+
export function validateMastraSection(options) {
|
|
86
|
+
const [firstKey] = Object.keys(options).sort();
|
|
87
|
+
if (firstKey !== undefined) {
|
|
88
|
+
const escaped = firstKey.replaceAll("~", "~0").replaceAll("/", "~1");
|
|
89
|
+
throw new ConfigError("schema", `/mastra/${escaped}`, "additionalProperties");
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
//# sourceMappingURL=mastra-harness.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mastra-harness.js","sourceRoot":"","sources":["../../src/mastra-harness.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC,EAAE;AACF,kDAAkD;AAClD,mEAAmE;AACnE,+CAA+C;AAC/C,EAAE;AACF,0DAA0D;AAE1D,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAA0C,MAAM,mCAAmC,CAAC;AACxG,OAAO,EAAE,4BAA4B,EAAE,MAAM,iCAAiC,CAAC;AAE/E;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,2BAA2B,CAAC;AAE7D;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,gBAAgB,CAAC;AAEnD;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAC9B,6GAA6G;IAC7G,yBAAyB,CAAC;AAE5B;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,MAAM,aAAa,GAAiB;IACzC,IAAI,EAAE,QAAQ;IACd,aAAa,EAAE,QAAQ;IACvB,QAAQ,EAAE,iBAAiB;IAC3B,YAAY,EAAE,kBAAkB;IAChC,iBAAiB,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,0BAA0B,CAAC,OAAO,CAAC;CACpE,CAAC;AAEF;;;;;;;;;;GAUG;AACH,MAAM,UAAU,0BAA0B,CAAC,OAAuB;IAChE,qBAAqB,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;IAC9C,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC;QACtB,EAAE,EAAE,WAAW;QACf,IAAI,EAAE,WAAW;QACjB,YAAY,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,YAAY,IAAI,mBAAmB;QAC7E,KAAK,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,KAAK;KACzC,CAAC,CAAC;IACH,OAAO,4BAA4B,CAAC,KAAK,EAAE,OAAO,CAAC,QAAQ,EAAE;QAC3D,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,GAAG,CAAC,OAAO,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,OAAO,CAAC,UAAU,EAAE,CAAC;KAChF,CAAC,CAAC;AACL,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,qBAAqB,CAAC,OAA0C;IAC9E,MAAM,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC;IAC/C,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;QAC3B,MAAM,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QACrE,MAAM,IAAI,WAAW,CAAC,QAAQ,EAAE,WAAW,OAAO,EAAE,EAAE,sBAAsB,CAAC,CAAC;IAChF,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdurable/dex-agents-mastra-cli",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.5.0",
|
|
4
|
+
"description": "The dex-agents-mastra command: a durable Mastra agent in your terminal",
|
|
5
5
|
"license": "LicenseRef-Sustainable-Use-1.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -9,10 +9,54 @@
|
|
|
9
9
|
"directory": "agents/cli/typescript/mastra"
|
|
10
10
|
},
|
|
11
11
|
"homepage": "https://github.com/superdurable/dex/tree/main/agents/cli/typescript/mastra#readme",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/superdurable/dex/issues"
|
|
14
|
+
},
|
|
15
|
+
"type": "module",
|
|
16
|
+
"types": "./dist/src/index.d.ts",
|
|
17
|
+
"engines": {
|
|
18
|
+
"node": "^22.0.0 || ^24.0.0"
|
|
19
|
+
},
|
|
20
|
+
"bin": {
|
|
21
|
+
"dex-agents-mastra": "dist/src/bin.js"
|
|
22
|
+
},
|
|
12
23
|
"files": [
|
|
13
|
-
"
|
|
24
|
+
"dist/src",
|
|
25
|
+
"README.md",
|
|
26
|
+
"LICENSE"
|
|
14
27
|
],
|
|
28
|
+
"exports": {
|
|
29
|
+
".": {
|
|
30
|
+
"types": "./dist/src/index.d.ts",
|
|
31
|
+
"import": "./dist/src/index.js"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"scripts": {
|
|
35
|
+
"build": "tsc -p tsconfig.json",
|
|
36
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
37
|
+
"test": "npm run build && node --test --test-concurrency=1 --test-timeout=300000 'dist/test/integ/*.integration.test.js'"
|
|
38
|
+
},
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@mastra/core": "1.81.0",
|
|
41
|
+
"zod": "^4.0.0"
|
|
42
|
+
},
|
|
43
|
+
"peerDependencies": {
|
|
44
|
+
"@superdurable/dex": "1.45.0",
|
|
45
|
+
"@superdurable/dex-agents": "^0.5.0",
|
|
46
|
+
"@superdurable/dex-agents-cli-core": "^0.5.0",
|
|
47
|
+
"@superdurable/dex-agents-mastra": "^0.5.0"
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@modelcontextprotocol/sdk": "1.32.2",
|
|
51
|
+
"@superdurable/dex": "1.45.0",
|
|
52
|
+
"@superdurable/dex-agents": "file:../../../typescript/core",
|
|
53
|
+
"@superdurable/dex-agents-cli-core": "file:../core",
|
|
54
|
+
"@superdurable/dex-agents-mastra": "file:../../../typescript/mastra",
|
|
55
|
+
"@types/node": "22.20.5",
|
|
56
|
+
"typescript": "5.9.3"
|
|
57
|
+
},
|
|
15
58
|
"publishConfig": {
|
|
16
|
-
"access": "public"
|
|
59
|
+
"access": "public",
|
|
60
|
+
"provenance": true
|
|
17
61
|
}
|
|
18
|
-
}
|
|
62
|
+
}
|