insta 0.0.14 → 0.0.15
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/commands/setup.js +7 -4
- package/package.json +1 -1
package/dist/commands/setup.js
CHANGED
|
@@ -71,11 +71,14 @@ export function summarizeInstall(output) {
|
|
|
71
71
|
: `${count} agent${count === 1 ? '' : 's'}`;
|
|
72
72
|
return `✓ Agent skills — ${list}`;
|
|
73
73
|
}
|
|
74
|
-
// Capture stdout+stderr silently (don't stream) so we can print our own clean summary.
|
|
75
|
-
//
|
|
74
|
+
// Capture stdout+stderr silently (don't stream) so we can print our own clean summary.
|
|
75
|
+
// stdin is 'ignore', NOT 'inherit': under the canonical `curl … | sh` install, stdin is the
|
|
76
|
+
// piped install script itself — a child that inherits it (npx/skills reads for keypresses even
|
|
77
|
+
// with -y) consumes the rest of the script, so the shell never runs the trailing "Get started"
|
|
78
|
+
// guidance. Ignoring stdin keeps the installer's own output intact. (-y means no prompt anyway.)
|
|
76
79
|
const defaultRunner = (cmd, args) => new Promise((resolve) => {
|
|
77
80
|
const env = { ...process.env, AI_AGENT: process.env.AI_AGENT || 'insta', FORCE_COLOR: '0' };
|
|
78
|
-
const p = spawn(cmd, args, { stdio: ['
|
|
81
|
+
const p = spawn(cmd, args, { stdio: ['ignore', 'pipe', 'pipe'], env });
|
|
79
82
|
let output = '';
|
|
80
83
|
const grab = (chunk) => { output += chunk.toString(); };
|
|
81
84
|
p.stdout?.on('data', grab);
|
|
@@ -90,7 +93,7 @@ export async function setupAgent(opts, run = defaultRunner) {
|
|
|
90
93
|
if (!opts.yes && !process.stdout.isTTY) {
|
|
91
94
|
info('non-interactive shell — assuming -y');
|
|
92
95
|
}
|
|
93
|
-
info('setting up coding-agent skills …
|
|
96
|
+
info('setting up coding-agent skills …');
|
|
94
97
|
const res = await run('npx', SETUP_ARGS);
|
|
95
98
|
if (!res.ok) {
|
|
96
99
|
info(' skill install failed — install manually with:');
|