singleton-pipeline 0.4.0-beta.4 → 0.4.0-beta.5
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/README.md +1 -1
- package/package.json +1 -1
- package/packages/cli/package.json +1 -1
- package/packages/cli/src/commands/repl.js +1 -1
- package/packages/cli/src/index.js +1 -1
- package/packages/cli/src/runners/copilot.js +11 -4
- package/packages/server/package.json +1 -1
- package/packages/web/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Singleton Pipeline Builder (v0.4.0-beta.
|
|
1
|
+
# Singleton Pipeline Builder (v0.4.0-beta.5)
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/singleton-pipeline)
|
|
4
4
|
[](https://www.npmjs.com/package/singleton-pipeline)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "singleton-pipeline",
|
|
3
|
-
"version": "0.4.0-beta.
|
|
3
|
+
"version": "0.4.0-beta.5",
|
|
4
4
|
"description": "Visual pipeline builder for multi-agent AI workflows. Orchestrates Claude Code, Codex, Copilot, and OpenCode under a unified security policy.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -202,7 +202,7 @@ const SINGLETON_RAW = [
|
|
|
202
202
|
];
|
|
203
203
|
|
|
204
204
|
const ART_WIDTH = Math.max(...SINGLETON_RAW.map((l) => l.length));
|
|
205
|
-
const APP_VERSION = 'v0.4.0-beta.
|
|
205
|
+
const APP_VERSION = 'v0.4.0-beta.5';
|
|
206
206
|
|
|
207
207
|
async function showWelcome(root, shell) {
|
|
208
208
|
const now = new Date();
|
|
@@ -76,10 +76,14 @@ export function buildCopilotPermissionArgs(securityPolicy = {}) {
|
|
|
76
76
|
return args;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
export function buildCopilotArgs({
|
|
79
|
+
export function buildCopilotArgs({ model, runnerAgent, securityPolicy = {} } = {}) {
|
|
80
|
+
// Prompt is written to stdin (see copilotRunner.run) instead of being passed
|
|
81
|
+
// as `-p <prompt>`. This avoids the Windows command-line length limit (~32KB)
|
|
82
|
+
// that hits as soon as the scout's context.md is injected into downstream
|
|
83
|
+
// prompts.
|
|
80
84
|
const args = [
|
|
81
85
|
'-p',
|
|
82
|
-
|
|
86
|
+
'-',
|
|
83
87
|
'--output-format',
|
|
84
88
|
'json',
|
|
85
89
|
...buildCopilotPermissionArgs(securityPolicy),
|
|
@@ -138,10 +142,10 @@ export const copilotRunner = {
|
|
|
138
142
|
timeoutMs = DEFAULT_TIMEOUT_MS,
|
|
139
143
|
}) {
|
|
140
144
|
const prompt = buildPrompt(systemPrompt, userPrompt);
|
|
141
|
-
const args = buildCopilotArgs({
|
|
145
|
+
const args = buildCopilotArgs({ model, runnerAgent, securityPolicy });
|
|
142
146
|
|
|
143
147
|
const { events, stderr } = await new Promise((resolve, reject) => {
|
|
144
|
-
const child = spawn('copilot', args, { cwd, stdio: ['
|
|
148
|
+
const child = spawn('copilot', args, { cwd, stdio: ['pipe', 'pipe', 'pipe'] });
|
|
145
149
|
const stdoutChunks = [];
|
|
146
150
|
let stderrText = '';
|
|
147
151
|
let timedOut = false;
|
|
@@ -152,6 +156,9 @@ export const copilotRunner = {
|
|
|
152
156
|
setTimeout(() => child.kill('SIGKILL'), 5000).unref();
|
|
153
157
|
}, timeoutMs);
|
|
154
158
|
|
|
159
|
+
child.stdin.write(prompt);
|
|
160
|
+
child.stdin.end();
|
|
161
|
+
|
|
155
162
|
child.stdout.on('data', (d) => stdoutChunks.push(d.toString()));
|
|
156
163
|
child.stderr.on('data', (d) => (stderrText += d.toString()));
|
|
157
164
|
child.on('error', (err) => {
|