@agentproto/adapter-mastra-agent 0.6.0 → 0.7.2
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/dist/cli.mjs
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -230,6 +230,16 @@ interface AgentSourceOptions {
|
|
|
230
230
|
* `daemon-mcp-tools.ts`'s `injectAppId`). Defaults to
|
|
231
231
|
* `AGENTPROTO_APP_ID` — an explicit value here is mainly a test hook. */
|
|
232
232
|
appId?: string;
|
|
233
|
+
/**
|
|
234
|
+
* Exact absolute paths OUTSIDE `cwd` the read-only workspace tools may
|
|
235
|
+
* also read — the daemon's AGENTS.md pointer contract grant. Defaults to
|
|
236
|
+
* parsing `AGENTPROTO_ADDITIONAL_READ_PATHS` (a JSON array, set by the
|
|
237
|
+
* driver when the spawn carries the grant); malformed values are ignored
|
|
238
|
+
* (the grant is advisory — a bad payload must never break a spawn) and an
|
|
239
|
+
* explicit value here is mainly a test hook. See
|
|
240
|
+
* `WorkspaceToolsOptions.additionalReadPaths`.
|
|
241
|
+
*/
|
|
242
|
+
additionalReadPaths?: string[];
|
|
233
243
|
/** Test hook: skip discovering + connecting to a real daemon MCP endpoint.
|
|
234
244
|
* `client` injects an already-connected client outright (e.g. one wired
|
|
235
245
|
* to an in-memory fake server); `discoverOptions` isolates
|
|
@@ -512,6 +522,18 @@ interface WorkspaceToolsOptions {
|
|
|
512
522
|
allowExec?: boolean;
|
|
513
523
|
/** Per-tool execution timeout (ms), enforced on every tool by `withTimeoutGuard`. Default 120_000. */
|
|
514
524
|
execTimeoutMs?: number;
|
|
525
|
+
/**
|
|
526
|
+
* Exact absolute paths OUTSIDE `cwd` the READ-ONLY tools (`read_file`,
|
|
527
|
+
* `file_read`, `file_info`) may additionally access. The daemon hands down
|
|
528
|
+
* the AGENTS.md file an inherited pointer prompt names
|
|
529
|
+
* (`AGENTPROTO_ADDITIONAL_READ_PATHS`, see `session-spawn.ts`) so the
|
|
530
|
+
* agent can actually read the contract it was told to load first.
|
|
531
|
+
* Deliberately narrow: exact files only (no parent-dir listing), the
|
|
532
|
+
* write tools (`write_file`, `edit_file`, …) never honour the grant, and
|
|
533
|
+
* sibling paths stay rejected — `escapes the workspace` still throws for
|
|
534
|
+
* everything else.
|
|
535
|
+
*/
|
|
536
|
+
additionalReadPaths?: string[];
|
|
515
537
|
/**
|
|
516
538
|
* Extra tools merged over the built-ins, keyed by id — lets an embedding
|
|
517
539
|
* host add tools the built-in toolset doesn't cover. On id collision, an
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { DEFAULT_MODEL, DEFAULT_MODEL_CATALOG, DEFAULT_TOOL_IDS, DISABLED_BUILTIN_TOOL_IDS, DaemonClient, DaemonHttpError, DaemonNotFoundError, MastraAcpAgent, buildSqliteMemory, buildSqliteStore, createEventMapper, defaultAgentManifest, discoverDaemonEndpoint, makeAgentFactory, makeDaemonTools, makeWorkspaceTools, messageText, modelRefToString, promptContent, promptText, providerOf, resolveInCwd, resolveMastraModel, resolveMemoryDbPath, runAcpOverStdio, toolCallTitle, toolKindFor } from './chunk-
|
|
1
|
+
export { DEFAULT_MODEL, DEFAULT_MODEL_CATALOG, DEFAULT_TOOL_IDS, DISABLED_BUILTIN_TOOL_IDS, DaemonClient, DaemonHttpError, DaemonNotFoundError, MastraAcpAgent, buildSqliteMemory, buildSqliteStore, createEventMapper, defaultAgentManifest, discoverDaemonEndpoint, makeAgentFactory, makeDaemonTools, makeWorkspaceTools, messageText, modelRefToString, promptContent, promptText, providerOf, resolveInCwd, resolveMastraModel, resolveMemoryDbPath, runAcpOverStdio, toolCallTitle, toolKindFor } from './chunk-2FKFITFT.mjs';
|
|
2
2
|
import { fileURLToPath } from 'url';
|
|
3
3
|
import { defineAgentCli, createAgentCliRuntime } from '@agentproto/driver-agent-cli';
|
|
4
4
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentproto/adapter-mastra-agent",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"description": "@agentproto/adapter-mastra-agent — first-party agentproto agent. An AIP-42 AGENT.md run as a live Mastra agent behind an AIP-44 ACP server, spawnable by the daemon like any other AGENT-CLI arm AND launchable standalone via `agentproto-mastra acp`. Our own loop, our own models — no external CLI.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agentproto",
|
|
@@ -47,27 +47,27 @@
|
|
|
47
47
|
"access": "public"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@agentclientprotocol/sdk": "^0.21.
|
|
51
|
-
"@ai-sdk/anthropic": "^3.0.
|
|
52
|
-
"@ai-sdk/provider": "^3.0.
|
|
53
|
-
"@mastra/core": "^1.
|
|
50
|
+
"@agentclientprotocol/sdk": "^0.21.1",
|
|
51
|
+
"@ai-sdk/anthropic": "^3.0.116",
|
|
52
|
+
"@ai-sdk/provider": "^3.0.15",
|
|
53
|
+
"@mastra/core": "^1.64.0",
|
|
54
54
|
"@mastra/libsql": "~1.21.1",
|
|
55
|
-
"@mastra/memory": "^1.
|
|
55
|
+
"@mastra/memory": "^1.28.2",
|
|
56
56
|
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
57
57
|
"zod": "^4.5.4",
|
|
58
|
-
"@agentproto/agent": "0.2.
|
|
59
|
-
"@agentproto/driver-agent-cli": "2.4.
|
|
60
|
-
"@agentproto/mastra": "0.2.
|
|
61
|
-
"@agentproto/runtime": "
|
|
58
|
+
"@agentproto/agent": "0.2.3",
|
|
59
|
+
"@agentproto/driver-agent-cli": "2.4.2",
|
|
60
|
+
"@agentproto/mastra": "0.2.13",
|
|
61
|
+
"@agentproto/runtime": "3.1.0"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@types/node": "^25.
|
|
64
|
+
"@types/node": "^25.9.5",
|
|
65
65
|
"tsup": "^8.5.1",
|
|
66
66
|
"typescript": "^5.9.3",
|
|
67
|
-
"vitest": "^3.2.
|
|
68
|
-
"@agentproto/app-kit": "
|
|
69
|
-
"@agentproto/apps": "0.9.
|
|
70
|
-
"@agentproto/tooling": "0.1.0
|
|
67
|
+
"vitest": "^3.2.7",
|
|
68
|
+
"@agentproto/app-kit": "1.1.1",
|
|
69
|
+
"@agentproto/apps": "0.9.3",
|
|
70
|
+
"@agentproto/tooling": "0.1.0"
|
|
71
71
|
},
|
|
72
72
|
"scripts": {
|
|
73
73
|
"dev": "tsup --watch",
|