stashes 0.1.2 → 0.1.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/dist/cli.js +66 -57
- package/dist/commands/setup.d.ts +1 -1
- package/dist/commands/setup.d.ts.map +1 -1
- package/dist/commands/setup.js +72 -59
- package/dist/commands/setup.js.map +1 -1
- package/package.json +3 -1
package/dist/cli.js
CHANGED
|
@@ -1799,16 +1799,18 @@ Cleaning up all stashes and worktrees...`);
|
|
|
1799
1799
|
import { existsSync as existsSync10, readFileSync as readFileSync7, writeFileSync as writeFileSync2, mkdirSync as mkdirSync4 } from "fs";
|
|
1800
1800
|
import { dirname as dirname3, join as join10 } from "path";
|
|
1801
1801
|
import { homedir } from "os";
|
|
1802
|
+
import * as p from "@clack/prompts";
|
|
1803
|
+
import pc from "picocolors";
|
|
1802
1804
|
var MCP_SERVER_NAME = "stashes";
|
|
1803
1805
|
var MCP_ENTRY_STANDARD = {
|
|
1804
1806
|
command: "npx",
|
|
1805
|
-
args: ["-y", "stashes@latest"],
|
|
1807
|
+
args: ["-y", "-p", "stashes@latest", "stashes-mcp"],
|
|
1806
1808
|
description: "Generate AI-powered UI design explorations"
|
|
1807
1809
|
};
|
|
1808
1810
|
var MCP_ENTRY_ZED = {
|
|
1809
1811
|
command: {
|
|
1810
1812
|
path: "npx",
|
|
1811
|
-
args: ["-y", "stashes@latest"]
|
|
1813
|
+
args: ["-y", "-p", "stashes@latest", "stashes-mcp"]
|
|
1812
1814
|
},
|
|
1813
1815
|
settings: {}
|
|
1814
1816
|
};
|
|
@@ -1914,63 +1916,66 @@ function shortenPath(fullPath) {
|
|
|
1914
1916
|
return fullPath;
|
|
1915
1917
|
}
|
|
1916
1918
|
function showStatus(tools) {
|
|
1919
|
+
p.intro(pc.bgMagenta(pc.black(" stashes ")));
|
|
1917
1920
|
const detected = tools.filter((t) => t.detect());
|
|
1918
|
-
console.log("");
|
|
1919
|
-
console.log(" Stashes MCP Status");
|
|
1920
|
-
console.log(" " + "-".repeat(50));
|
|
1921
1921
|
if (detected.length === 0) {
|
|
1922
|
-
|
|
1923
|
-
|
|
1922
|
+
p.log.warn("No supported AI tools detected on this system.");
|
|
1923
|
+
p.outro("Nothing to show.");
|
|
1924
1924
|
return;
|
|
1925
1925
|
}
|
|
1926
|
-
const
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
console.log(` - ${name} not set up ${path}`);
|
|
1934
|
-
}
|
|
1935
|
-
}
|
|
1936
|
-
console.log("");
|
|
1926
|
+
const lines = detected.map((tool) => {
|
|
1927
|
+
const status = isConfigured(tool) ? pc.green("\u2713 Configured") : pc.yellow("\u25CB Not set up");
|
|
1928
|
+
return ` ${tool.name.padEnd(16)} ${status} ${pc.dim(shortenPath(tool.configPath))}`;
|
|
1929
|
+
});
|
|
1930
|
+
p.note(lines.join(`
|
|
1931
|
+
`), "MCP Server Status");
|
|
1932
|
+
p.outro(`${detected.length} tool${detected.length === 1 ? "" : "s"} detected.`);
|
|
1937
1933
|
}
|
|
1938
|
-
function runInstall(tools) {
|
|
1934
|
+
async function runInstall(tools) {
|
|
1935
|
+
p.intro(pc.bgMagenta(pc.black(" stashes ")));
|
|
1936
|
+
const s = p.spinner();
|
|
1937
|
+
s.start("Scanning for AI tools...");
|
|
1939
1938
|
const detected = tools.filter((t) => t.detect());
|
|
1940
|
-
|
|
1941
|
-
console.log(" Stashes Setup");
|
|
1942
|
-
console.log(" " + "-".repeat(50));
|
|
1939
|
+
s.stop(`Found ${pc.bold(String(detected.length))} AI tool${detected.length === 1 ? "" : "s"}`);
|
|
1943
1940
|
if (detected.length === 0) {
|
|
1944
|
-
|
|
1945
|
-
|
|
1941
|
+
p.log.warn("No supported AI tools detected on this system.");
|
|
1942
|
+
p.outro("Nothing to configure.");
|
|
1946
1943
|
return;
|
|
1947
1944
|
}
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1945
|
+
const summaryLines = detected.map((tool) => {
|
|
1946
|
+
const status = isConfigured(tool) ? `${pc.green("\u2713")} ${pc.dim("(already configured)")}` : pc.green("\u25CB");
|
|
1947
|
+
return ` ${tool.name.padEnd(16)} ${status} ${pc.dim(shortenPath(tool.configPath))}`;
|
|
1948
|
+
});
|
|
1949
|
+
p.note(summaryLines.join(`
|
|
1950
|
+
`), "Detected Tools");
|
|
1951
|
+
const configured = [];
|
|
1952
|
+
const failed = [];
|
|
1953
|
+
for (const tool of detected) {
|
|
1951
1954
|
try {
|
|
1952
1955
|
installMcp(tool);
|
|
1953
|
-
|
|
1956
|
+
configured.push(tool.name);
|
|
1957
|
+
p.log.success(`${tool.name} ${pc.dim(shortenPath(tool.configPath))}`);
|
|
1954
1958
|
} catch (e) {
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
});
|
|
1958
|
-
for (const result of results) {
|
|
1959
|
-
const path = shortenPath(result.tool.configPath);
|
|
1960
|
-
if (result.ok) {
|
|
1961
|
-
console.log(` \u2713 ${result.tool.name}`);
|
|
1962
|
-
console.log(` ${path}`);
|
|
1963
|
-
} else {
|
|
1964
|
-
console.log(` \u2717 ${result.tool.name} -- ${result.error}`);
|
|
1965
|
-
console.log(` ${path}`);
|
|
1959
|
+
failed.push(tool.name);
|
|
1960
|
+
p.log.error(`${tool.name} \u2014 ${e.message}`);
|
|
1966
1961
|
}
|
|
1967
1962
|
}
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1963
|
+
if (failed.length > 0) {
|
|
1964
|
+
p.log.warn(`${failed.length} tool${failed.length === 1 ? "" : "s"} failed: ${failed.join(", ")}`);
|
|
1965
|
+
}
|
|
1966
|
+
p.note([
|
|
1967
|
+
`${pc.bold("In Claude Code")}, just ask naturally:`,
|
|
1968
|
+
` ${pc.cyan('"Generate 3 stashes for a better hero section"')}`,
|
|
1969
|
+
"",
|
|
1970
|
+
`${pc.bold("Or use the CLI")} directly:`,
|
|
1971
|
+
` ${pc.cyan('stashes generate "make the hero bolder" --count 3')}`,
|
|
1972
|
+
` ${pc.cyan("stashes browse")} \u2014 open the web UI`
|
|
1973
|
+
].join(`
|
|
1974
|
+
`), "Getting Started");
|
|
1975
|
+
p.outro(`Stashes MCP registered in ${pc.bold(String(configured.length))} tool${configured.length === 1 ? "" : "s"}. Happy designing!`);
|
|
1972
1976
|
}
|
|
1973
|
-
function runRemove(tools) {
|
|
1977
|
+
async function runRemove(tools) {
|
|
1978
|
+
p.intro(pc.bgMagenta(pc.black(" stashes ")));
|
|
1974
1979
|
const configured = tools.filter((t) => {
|
|
1975
1980
|
try {
|
|
1976
1981
|
return t.detect() && isConfigured(t);
|
|
@@ -1978,34 +1983,38 @@ function runRemove(tools) {
|
|
|
1978
1983
|
return false;
|
|
1979
1984
|
}
|
|
1980
1985
|
});
|
|
1981
|
-
console.log("");
|
|
1982
|
-
console.log(" Stashes Remove");
|
|
1983
|
-
console.log(" " + "-".repeat(50));
|
|
1984
1986
|
if (configured.length === 0) {
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
+
p.log.info("Stashes MCP is not configured in any detected tools.");
|
|
1988
|
+
p.outro("Nothing to remove.");
|
|
1989
|
+
return;
|
|
1990
|
+
}
|
|
1991
|
+
const shouldProceed = await p.confirm({
|
|
1992
|
+
message: `Remove Stashes from ${configured.length} tool${configured.length === 1 ? "" : "s"}?`
|
|
1993
|
+
});
|
|
1994
|
+
if (p.isCancel(shouldProceed) || !shouldProceed) {
|
|
1995
|
+
p.cancel("Removal cancelled.");
|
|
1987
1996
|
return;
|
|
1988
1997
|
}
|
|
1998
|
+
let removedCount = 0;
|
|
1989
1999
|
for (const tool of configured) {
|
|
1990
2000
|
try {
|
|
1991
2001
|
removeMcp(tool);
|
|
1992
|
-
|
|
2002
|
+
removedCount++;
|
|
2003
|
+
p.log.success(`Removed from ${tool.name}`);
|
|
1993
2004
|
} catch (e) {
|
|
1994
|
-
|
|
2005
|
+
p.log.error(`${tool.name} \u2014 ${e.message}`);
|
|
1995
2006
|
}
|
|
1996
2007
|
}
|
|
1997
|
-
|
|
1998
|
-
console.log(" Done.");
|
|
1999
|
-
console.log("");
|
|
2008
|
+
p.outro(`Stashes removed from ${pc.bold(String(removedCount))} tool${removedCount === 1 ? "" : "s"}.`);
|
|
2000
2009
|
}
|
|
2001
|
-
function setupCommand(options) {
|
|
2010
|
+
async function setupCommand(options) {
|
|
2002
2011
|
const tools = buildToolDefinitions();
|
|
2003
2012
|
if (options.status) {
|
|
2004
2013
|
showStatus(tools);
|
|
2005
2014
|
} else if (options.remove) {
|
|
2006
|
-
runRemove(tools);
|
|
2015
|
+
await runRemove(tools);
|
|
2007
2016
|
} else {
|
|
2008
|
-
runInstall(tools);
|
|
2017
|
+
await runInstall(tools);
|
|
2009
2018
|
}
|
|
2010
2019
|
}
|
|
2011
2020
|
|
package/dist/commands/setup.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../src/commands/setup.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../src/commands/setup.ts"],"names":[],"mappings":"AA8RA,UAAU,YAAY;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,wBAAsB,YAAY,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAUvE"}
|
package/dist/commands/setup.js
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import { existsSync, readFileSync, writeFileSync, mkdirSync } from 'node:fs';
|
|
2
2
|
import { dirname, join } from 'node:path';
|
|
3
3
|
import { homedir } from 'node:os';
|
|
4
|
+
import * as p from '@clack/prompts';
|
|
5
|
+
import pc from 'picocolors';
|
|
4
6
|
// ── Constants ───────────────────────────────────────────────────────────────────
|
|
5
7
|
const MCP_SERVER_NAME = 'stashes';
|
|
6
8
|
const MCP_ENTRY_STANDARD = {
|
|
7
9
|
command: 'npx',
|
|
8
|
-
args: ['-y', 'stashes@latest'],
|
|
10
|
+
args: ['-y', '-p', 'stashes@latest', 'stashes-mcp'],
|
|
9
11
|
description: 'Generate AI-powered UI design explorations',
|
|
10
12
|
};
|
|
11
13
|
const MCP_ENTRY_ZED = {
|
|
12
14
|
command: {
|
|
13
15
|
path: 'npx',
|
|
14
|
-
args: ['-y', 'stashes@latest'],
|
|
16
|
+
args: ['-y', '-p', 'stashes@latest', 'stashes-mcp'],
|
|
15
17
|
},
|
|
16
18
|
settings: {},
|
|
17
19
|
};
|
|
@@ -125,66 +127,73 @@ function shortenPath(fullPath) {
|
|
|
125
127
|
}
|
|
126
128
|
// ── Command actions ─────────────────────────────────────────────────────────────
|
|
127
129
|
function showStatus(tools) {
|
|
130
|
+
p.intro(pc.bgMagenta(pc.black(' stashes ')));
|
|
128
131
|
const detected = tools.filter((t) => t.detect());
|
|
129
|
-
console.log('');
|
|
130
|
-
console.log(' Stashes MCP Status');
|
|
131
|
-
console.log(' ' + '-'.repeat(50));
|
|
132
132
|
if (detected.length === 0) {
|
|
133
|
-
|
|
134
|
-
|
|
133
|
+
p.log.warn('No supported AI tools detected on this system.');
|
|
134
|
+
p.outro('Nothing to show.');
|
|
135
135
|
return;
|
|
136
136
|
}
|
|
137
|
-
const
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
console.log(` - ${name} not set up ${path}`);
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
console.log('');
|
|
137
|
+
const lines = detected.map((tool) => {
|
|
138
|
+
const status = isConfigured(tool)
|
|
139
|
+
? pc.green('✓ Configured')
|
|
140
|
+
: pc.yellow('○ Not set up');
|
|
141
|
+
return ` ${tool.name.padEnd(16)} ${status} ${pc.dim(shortenPath(tool.configPath))}`;
|
|
142
|
+
});
|
|
143
|
+
p.note(lines.join('\n'), 'MCP Server Status');
|
|
144
|
+
p.outro(`${detected.length} tool${detected.length === 1 ? '' : 's'} detected.`);
|
|
149
145
|
}
|
|
150
|
-
function runInstall(tools) {
|
|
146
|
+
async function runInstall(tools) {
|
|
147
|
+
p.intro(pc.bgMagenta(pc.black(' stashes ')));
|
|
148
|
+
// Scan for tools
|
|
149
|
+
const s = p.spinner();
|
|
150
|
+
s.start('Scanning for AI tools...');
|
|
151
151
|
const detected = tools.filter((t) => t.detect());
|
|
152
|
-
|
|
153
|
-
console.log(' Stashes Setup');
|
|
154
|
-
console.log(' ' + '-'.repeat(50));
|
|
152
|
+
s.stop(`Found ${pc.bold(String(detected.length))} AI tool${detected.length === 1 ? '' : 's'}`);
|
|
155
153
|
if (detected.length === 0) {
|
|
156
|
-
|
|
157
|
-
|
|
154
|
+
p.log.warn('No supported AI tools detected on this system.');
|
|
155
|
+
p.outro('Nothing to configure.');
|
|
158
156
|
return;
|
|
159
157
|
}
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
158
|
+
// Show detected tools summary
|
|
159
|
+
const summaryLines = detected.map((tool) => {
|
|
160
|
+
const status = isConfigured(tool)
|
|
161
|
+
? `${pc.green('✓')} ${pc.dim('(already configured)')}`
|
|
162
|
+
: pc.green('○');
|
|
163
|
+
return ` ${tool.name.padEnd(16)} ${status} ${pc.dim(shortenPath(tool.configPath))}`;
|
|
164
|
+
});
|
|
165
|
+
p.note(summaryLines.join('\n'), 'Detected Tools');
|
|
166
|
+
// Configure each tool
|
|
167
|
+
const configured = [];
|
|
168
|
+
const failed = [];
|
|
169
|
+
for (const tool of detected) {
|
|
163
170
|
try {
|
|
164
171
|
installMcp(tool);
|
|
165
|
-
|
|
172
|
+
configured.push(tool.name);
|
|
173
|
+
p.log.success(`${tool.name} ${pc.dim(shortenPath(tool.configPath))}`);
|
|
166
174
|
}
|
|
167
175
|
catch (e) {
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
});
|
|
171
|
-
for (const result of results) {
|
|
172
|
-
const path = shortenPath(result.tool.configPath);
|
|
173
|
-
if (result.ok) {
|
|
174
|
-
console.log(` \u2713 ${result.tool.name}`);
|
|
175
|
-
console.log(` ${path}`);
|
|
176
|
-
}
|
|
177
|
-
else {
|
|
178
|
-
console.log(` \u2717 ${result.tool.name} -- ${result.error}`);
|
|
179
|
-
console.log(` ${path}`);
|
|
176
|
+
failed.push(tool.name);
|
|
177
|
+
p.log.error(`${tool.name} — ${e.message}`);
|
|
180
178
|
}
|
|
181
179
|
}
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
180
|
+
// Summary
|
|
181
|
+
if (failed.length > 0) {
|
|
182
|
+
p.log.warn(`${failed.length} tool${failed.length === 1 ? '' : 's'} failed: ${failed.join(', ')}`);
|
|
183
|
+
}
|
|
184
|
+
// Usage hint
|
|
185
|
+
p.note([
|
|
186
|
+
`${pc.bold('In Claude Code')}, just ask naturally:`,
|
|
187
|
+
` ${pc.cyan('"Generate 3 stashes for a better hero section"')}`,
|
|
188
|
+
'',
|
|
189
|
+
`${pc.bold('Or use the CLI')} directly:`,
|
|
190
|
+
` ${pc.cyan('stashes generate "make the hero bolder" --count 3')}`,
|
|
191
|
+
` ${pc.cyan('stashes browse')} — open the web UI`,
|
|
192
|
+
].join('\n'), 'Getting Started');
|
|
193
|
+
p.outro(`Stashes MCP registered in ${pc.bold(String(configured.length))} tool${configured.length === 1 ? '' : 's'}. Happy designing!`);
|
|
186
194
|
}
|
|
187
|
-
function runRemove(tools) {
|
|
195
|
+
async function runRemove(tools) {
|
|
196
|
+
p.intro(pc.bgMagenta(pc.black(' stashes ')));
|
|
188
197
|
const configured = tools.filter((t) => {
|
|
189
198
|
try {
|
|
190
199
|
return t.detect() && isConfigured(t);
|
|
@@ -193,37 +202,41 @@ function runRemove(tools) {
|
|
|
193
202
|
return false;
|
|
194
203
|
}
|
|
195
204
|
});
|
|
196
|
-
console.log('');
|
|
197
|
-
console.log(' Stashes Remove');
|
|
198
|
-
console.log(' ' + '-'.repeat(50));
|
|
199
205
|
if (configured.length === 0) {
|
|
200
|
-
|
|
201
|
-
|
|
206
|
+
p.log.info('Stashes MCP is not configured in any detected tools.');
|
|
207
|
+
p.outro('Nothing to remove.');
|
|
208
|
+
return;
|
|
209
|
+
}
|
|
210
|
+
const shouldProceed = await p.confirm({
|
|
211
|
+
message: `Remove Stashes from ${configured.length} tool${configured.length === 1 ? '' : 's'}?`,
|
|
212
|
+
});
|
|
213
|
+
if (p.isCancel(shouldProceed) || !shouldProceed) {
|
|
214
|
+
p.cancel('Removal cancelled.');
|
|
202
215
|
return;
|
|
203
216
|
}
|
|
217
|
+
let removedCount = 0;
|
|
204
218
|
for (const tool of configured) {
|
|
205
219
|
try {
|
|
206
220
|
removeMcp(tool);
|
|
207
|
-
|
|
221
|
+
removedCount++;
|
|
222
|
+
p.log.success(`Removed from ${tool.name}`);
|
|
208
223
|
}
|
|
209
224
|
catch (e) {
|
|
210
|
-
|
|
225
|
+
p.log.error(`${tool.name} — ${e.message}`);
|
|
211
226
|
}
|
|
212
227
|
}
|
|
213
|
-
|
|
214
|
-
console.log(' Done.');
|
|
215
|
-
console.log('');
|
|
228
|
+
p.outro(`Stashes removed from ${pc.bold(String(removedCount))} tool${removedCount === 1 ? '' : 's'}.`);
|
|
216
229
|
}
|
|
217
|
-
export function setupCommand(options) {
|
|
230
|
+
export async function setupCommand(options) {
|
|
218
231
|
const tools = buildToolDefinitions();
|
|
219
232
|
if (options.status) {
|
|
220
233
|
showStatus(tools);
|
|
221
234
|
}
|
|
222
235
|
else if (options.remove) {
|
|
223
|
-
runRemove(tools);
|
|
236
|
+
await runRemove(tools);
|
|
224
237
|
}
|
|
225
238
|
else {
|
|
226
|
-
runInstall(tools);
|
|
239
|
+
await runInstall(tools);
|
|
227
240
|
}
|
|
228
241
|
}
|
|
229
242
|
//# sourceMappingURL=setup.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup.js","sourceRoot":"","sources":["../../src/commands/setup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"setup.js","sourceRoot":"","sources":["../../src/commands/setup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,KAAK,CAAC,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,MAAM,YAAY,CAAC;AAe5B,mFAAmF;AAEnF,MAAM,eAAe,GAAG,SAAS,CAAC;AAElC,MAAM,kBAAkB,GAAG;IACzB,OAAO,EAAE,KAAK;IACd,IAAI,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,gBAAgB,EAAE,aAAa,CAAC;IACnD,WAAW,EAAE,4CAA4C;CAC1D,CAAC;AAEF,MAAM,aAAa,GAAG;IACpB,OAAO,EAAE;QACP,IAAI,EAAE,KAAK;QACX,IAAI,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,gBAAgB,EAAE,aAAa,CAAC;KACpD;IACD,QAAQ,EAAE,EAAE;CACb,CAAC;AAEF,mFAAmF;AAEnF,SAAS,oBAAoB;IAC3B,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IACvB,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,EAAE,SAAS,EAAE,qBAAqB,CAAC,CAAC;IAEhE,OAAO;QACL;YACE,EAAE,EAAE,aAAa;YACjB,IAAI,EAAE,aAAa;YACnB,UAAU,EAAE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2
|
"name": "stashes",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Generate AI-powered UI design explorations in your project",
|
|
6
6
|
"keywords": [
|
|
@@ -38,10 +38,12 @@
|
|
|
38
38
|
"typecheck": "tsc --noEmit"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
+
"@clack/prompts": "^1.0.1",
|
|
41
42
|
"@modelcontextprotocol/sdk": "^1.12.1",
|
|
42
43
|
"commander": "^13.0.0",
|
|
43
44
|
"hono": "^4.7.0",
|
|
44
45
|
"open": "^10.1.0",
|
|
46
|
+
"picocolors": "^1.1.1",
|
|
45
47
|
"simple-git": "^3.27.0",
|
|
46
48
|
"zod": "^3.24.0"
|
|
47
49
|
},
|