@arhen/pi-core-subagent 1.3.16 → 1.3.17
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 +1 -1
- package/src/manager.ts +8 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arhen/pi-core-subagent",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.17",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "pi extension: fast in-process subagents with a dependency-graph scheduler (needs edges gate tasks and carry upstream output into dependent prompts), plus background runs, intercom and agent-to-agent mailbox. Leader defines agents inline.",
|
|
6
6
|
"license": "MIT",
|
package/src/manager.ts
CHANGED
|
@@ -224,18 +224,20 @@ export class SubagentManager {
|
|
|
224
224
|
/** Flip the background-by-default flag; persists to the agent dir. Returns the new value. */
|
|
225
225
|
setAutoBg(on: boolean): boolean {
|
|
226
226
|
this.autoBg = on;
|
|
227
|
-
void writeFile(
|
|
228
|
-
()
|
|
229
|
-
|
|
227
|
+
void writeFile(
|
|
228
|
+
join(getAgentDir(), "subagents-config.json"),
|
|
229
|
+
JSON.stringify({ autoBg: on, autoLimit: this.autoLimit }, null, 2),
|
|
230
|
+
).catch(() => {});
|
|
230
231
|
return on;
|
|
231
232
|
}
|
|
232
233
|
|
|
233
234
|
/** Flip the auto-limit flag; persists to the agent dir. Returns the new value. */
|
|
234
235
|
setAutoLimit(on: boolean): boolean {
|
|
235
236
|
this.autoLimit = on;
|
|
236
|
-
void writeFile(
|
|
237
|
-
()
|
|
238
|
-
|
|
237
|
+
void writeFile(
|
|
238
|
+
join(getAgentDir(), "subagents-config.json"),
|
|
239
|
+
JSON.stringify({ autoBg: this.autoBg, autoLimit: on }, null, 2),
|
|
240
|
+
).catch(() => {});
|
|
239
241
|
return on;
|
|
240
242
|
}
|
|
241
243
|
|