@fleetagent/pi-coding-agent 0.1.0 → 0.1.2

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.
@@ -2456,11 +2456,12 @@ export class AgentSession {
2456
2456
  // =========================================================================
2457
2457
  /**
2458
2458
  * Execute a bash command.
2459
- * Adds result to agent context and session.
2459
+ * Adds result to agent context and session unless options.record is false.
2460
2460
  * @param command The bash command to execute
2461
2461
  * @param onChunk Optional streaming callback for output
2462
2462
  * @param options.excludeFromContext If true, command output won't be sent to LLM (!! prefix)
2463
2463
  * @param options.operations Custom ToolOperations for remote execution
2464
+ * @param options.record If false, result won't be stored in agent state or session history
2464
2465
  */
2465
2466
  async executeBash(command, onChunk, options) {
2466
2467
  this._bashAbortController = new AbortController();
@@ -2476,7 +2477,9 @@ export class AgentSession {
2476
2477
  onChunk,
2477
2478
  signal: this._bashAbortController.signal,
2478
2479
  });
2479
- this.recordBashResult(command, result, options);
2480
+ if (options?.record !== false) {
2481
+ this.recordBashResult(command, result, options);
2482
+ }
2480
2483
  return result;
2481
2484
  }
2482
2485
  finally {