@lsctech/polaris 0.3.14 → 0.3.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/cli/adopt-canon.js +8 -1
- package/package.json +1 -1
package/dist/cli/adopt-canon.js
CHANGED
|
@@ -153,9 +153,16 @@ If no doctrine docs are relevant, return an empty array for relevant_docs.`;
|
|
|
153
153
|
const args = stripWorkerFlags(rawArgs);
|
|
154
154
|
const result = (0, node_child_process_1.spawnSync)(cfg.command, args, {
|
|
155
155
|
encoding: "utf-8",
|
|
156
|
-
timeout:
|
|
156
|
+
timeout: 120000,
|
|
157
157
|
cwd: repoRoot,
|
|
158
158
|
});
|
|
159
|
+
if (result.error) {
|
|
160
|
+
console.log(` agent error: ${result.error.message}`);
|
|
161
|
+
return null;
|
|
162
|
+
}
|
|
163
|
+
if (result.stderr?.trim()) {
|
|
164
|
+
console.log(` agent stderr: ${result.stderr.trim().slice(0, 200)}`);
|
|
165
|
+
}
|
|
159
166
|
const stdout = (result.stdout ?? "").trim();
|
|
160
167
|
// Try single-line JSON first (ideal case)
|
|
161
168
|
const jsonLine = stdout
|