@struktoai/mirage-agents 0.0.3-alpha.0 → 0.0.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@struktoai/mirage-agents",
3
- "version": "0.0.3-alpha.0",
3
+ "version": "0.0.4",
4
4
  "description": "A Unified Virtual Filesystem For AI Agents",
5
5
  "keywords": [
6
6
  "bash",
@@ -50,6 +50,10 @@
50
50
  "types": "./dist/pi/index.d.ts",
51
51
  "import": "./dist/pi/index.js"
52
52
  },
53
+ "./mcp": {
54
+ "types": "./dist/mcp/index.d.ts",
55
+ "import": "./dist/mcp/index.js"
56
+ },
53
57
  "./vercel": {
54
58
  "types": "./dist/vercel/index.d.ts",
55
59
  "import": "./dist/vercel/index.js"
@@ -61,37 +65,72 @@
61
65
  "./opencode": {
62
66
  "types": "./dist/opencode/index.d.ts",
63
67
  "import": "./dist/opencode/index.js"
68
+ },
69
+ "./claude-agent-sdk": {
70
+ "types": "./dist/claude-agent-sdk/index.d.ts",
71
+ "import": "./dist/claude-agent-sdk/index.js"
64
72
  }
65
73
  },
66
74
  "files": [
67
75
  "dist"
68
76
  ],
69
77
  "dependencies": {
78
+ "@modelcontextprotocol/sdk": "^1.29.0",
70
79
  "picomatch": "^4.0.4",
71
- "@struktoai/mirage-core": "0.0.3-alpha.0"
80
+ "zod": "^4.0.0",
81
+ "@struktoai/mirage-core": "0.0.4"
72
82
  },
73
83
  "peerDependencies": {
74
- "@mariozechner/pi-ai": "^0.70.0",
75
- "@mariozechner/pi-coding-agent": "^0.70.0",
76
- "@mastra/core": "^1.29.0",
77
- "@openai/agents": "^0.8.0",
78
- "ai": "^6.0.0",
79
- "deepagents": "^1.9.0",
80
- "zod": "^4.0.0"
84
+ "@anthropic-ai/claude-agent-sdk": "^0.3.215",
85
+ "@earendil-works/pi-coding-agent": "^0.80.10",
86
+ "@mastra/core": "^1.51.0",
87
+ "@opencode-ai/plugin": "^1.18.3",
88
+ "@openai/agents": "^0.13.5",
89
+ "ai": "^7.0.31",
90
+ "deepagents": "^1.11.1"
91
+ },
92
+ "peerDependenciesMeta": {
93
+ "@anthropic-ai/claude-agent-sdk": {
94
+ "optional": true
95
+ },
96
+ "@earendil-works/pi-coding-agent": {
97
+ "optional": true
98
+ },
99
+ "@mastra/core": {
100
+ "optional": true
101
+ },
102
+ "@opencode-ai/plugin": {
103
+ "optional": true
104
+ },
105
+ "@openai/agents": {
106
+ "optional": true
107
+ },
108
+ "ai": {
109
+ "optional": true
110
+ },
111
+ "deepagents": {
112
+ "optional": true
113
+ }
81
114
  },
82
115
  "devDependencies": {
83
- "@mariozechner/pi-ai": "^0.70.2",
84
- "@mariozechner/pi-coding-agent": "^0.70.2",
85
- "@mastra/core": "^1.29.1",
86
- "@openai/agents": "^0.8.0",
116
+ "@anthropic-ai/claude-agent-sdk": "^0.3.215",
117
+ "@earendil-works/pi-coding-agent": "^0.80.10",
118
+ "@langchain/core": "^1.2.0",
119
+ "@langchain/langgraph": "^1.4.4",
120
+ "@langchain/langgraph-checkpoint": "^1.1.2",
121
+ "@langchain/langgraph-sdk": "^1.9.23",
122
+ "@mastra/core": "^1.51.0",
123
+ "@opencode-ai/plugin": "^1.18.3",
124
+ "@openai/agents": "^0.13.5",
125
+ "@types/node": "^22.0.0",
87
126
  "@types/picomatch": "^4.0.3",
88
- "ai": "^6.0.170",
89
- "deepagents": "^1.9.0",
127
+ "ai": "^7.0.31",
128
+ "deepagents": "^1.11.1",
129
+ "langchain": "^1.5.0",
90
130
  "tsup": "^8.5.0",
91
131
  "typescript": "^6.0.0",
92
132
  "vitest": "^3.2.6",
93
- "zod": "^4.0.0",
94
- "@struktoai/mirage-node": "0.0.3-alpha.0"
133
+ "@struktoai/mirage-node": "0.0.4"
95
134
  },
96
135
  "scripts": {
97
136
  "build": "tsup",
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/prompt.ts"],"sourcesContent":["// ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n// ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========\n\nimport type { Workspace } from '@struktoai/mirage-core'\n\nexport const MIRAGE_SYSTEM_PROMPT = `Your filesystem is powered by Mirage — a virtual filesystem that mounts cloud storage, local files, and in-memory data as a unified file tree.\n\nAll file paths live under /mirage/. Do not access paths outside this folder.\n\nCapabilities beyond standard filesystem:\n- cat on .parquet, .orc, .feather files returns a formatted table\n- head -n 5 on data files returns the first 5 rows/seconds\n- grep works natively on CSV, JSON, Parquet — not just text\n- Pipes work: cat data.parquet | grep error | sort | uniq | wc -l\n- head, tail, cut, wc, sort, uniq, tee, xargs are all available\n\nYou can write Python code and execute it. The workspace is pre-configured with your data sources mounted at their respective paths.\n\nUse the execute tool for complex operations. Use read_file/write_file/edit_file for simple file operations.\n`\n\nexport interface BuildSystemPromptOptions {\n workspace?: Workspace\n mountInfo?: Record<string, string>\n extraInstructions?: string\n}\n\nexport function buildSystemPrompt(opts: BuildSystemPromptOptions = {}): string {\n const parts: string[] = [MIRAGE_SYSTEM_PROMPT]\n if (opts.workspace !== undefined) {\n parts.push('Mounted data sources:\\n' + opts.workspace.filePrompt)\n } else if (opts.mountInfo !== undefined && Object.keys(opts.mountInfo).length > 0) {\n parts.push('\\nMounted data sources:')\n for (const [prefix, description] of Object.entries(opts.mountInfo)) {\n parts.push(`- ${prefix} — ${description}`)\n }\n parts.push('')\n }\n if (opts.extraInstructions !== undefined && opts.extraInstructions.length > 0) {\n parts.push(opts.extraInstructions)\n }\n return parts.join('\\n')\n}\n"],"mappings":";AAgBO,IAAM,uBAAuB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAsB7B,SAAS,kBAAkB,OAAiC,CAAC,GAAW;AAC7E,QAAM,QAAkB,CAAC,oBAAoB;AAC7C,MAAI,KAAK,cAAc,QAAW;AAChC,UAAM,KAAK,4BAA4B,KAAK,UAAU,UAAU;AAAA,EAClE,WAAW,KAAK,cAAc,UAAa,OAAO,KAAK,KAAK,SAAS,EAAE,SAAS,GAAG;AACjF,UAAM,KAAK,yBAAyB;AACpC,eAAW,CAAC,QAAQ,WAAW,KAAK,OAAO,QAAQ,KAAK,SAAS,GAAG;AAClE,YAAM,KAAK,KAAK,MAAM,WAAM,WAAW,EAAE;AAAA,IAC3C;AACA,UAAM,KAAK,EAAE;AAAA,EACf;AACA,MAAI,KAAK,sBAAsB,UAAa,KAAK,kBAAkB,SAAS,GAAG;AAC7E,UAAM,KAAK,KAAK,iBAAiB;AAAA,EACnC;AACA,SAAO,MAAM,KAAK,IAAI;AACxB;","names":[]}
@@ -1,11 +0,0 @@
1
- import { Workspace } from '@struktoai/mirage-core';
2
-
3
- declare const MIRAGE_SYSTEM_PROMPT = "Your filesystem is powered by Mirage \u2014 a virtual filesystem that mounts cloud storage, local files, and in-memory data as a unified file tree.\n\nAll file paths live under /mirage/. Do not access paths outside this folder.\n\nCapabilities beyond standard filesystem:\n- cat on .parquet, .orc, .feather files returns a formatted table\n- head -n 5 on data files returns the first 5 rows/seconds\n- grep works natively on CSV, JSON, Parquet \u2014 not just text\n- Pipes work: cat data.parquet | grep error | sort | uniq | wc -l\n- head, tail, cut, wc, sort, uniq, tee, xargs are all available\n\nYou can write Python code and execute it. The workspace is pre-configured with your data sources mounted at their respective paths.\n\nUse the execute tool for complex operations. Use read_file/write_file/edit_file for simple file operations.\n";
4
- interface BuildSystemPromptOptions {
5
- workspace?: Workspace;
6
- mountInfo?: Record<string, string>;
7
- extraInstructions?: string;
8
- }
9
- declare function buildSystemPrompt(opts?: BuildSystemPromptOptions): string;
10
-
11
- export { type BuildSystemPromptOptions as B, MIRAGE_SYSTEM_PROMPT as M, buildSystemPrompt as b };