@sebastianandreasson/pi-autonomous-agents 0.2.0 → 0.3.0

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.
@@ -1,6 +1,6 @@
1
1
  import fs from 'node:fs/promises'
2
2
 
3
- const CSV_HEADER = 'timestamp,iteration,phase,kind,status,transport,session_id,timed_out,exit_code,duration_seconds,commit_before,commit_after,repo_changed,changed_files_count,verification_status,retry_count,notes\n'
3
+ const CSV_HEADER = 'timestamp,iteration,phase,kind,status,transport,session_id,timed_out,exit_code,duration_seconds,commit_before,commit_after,repo_changed,changed_files_count,verification_status,retry_count,role,model,tool_calls,tool_errors,message_updates,stop_reason,loop_detected,loop_signature,tester_verdict,commit_plan_found,terminal_reason,notes\n'
4
4
 
5
5
  function csvEscape(value) {
6
6
  const text = String(value ?? '')
@@ -11,6 +11,8 @@ export async function ensureTelemetryFiles(config) {
11
11
  await fs.writeFile(config.lastAgentOutputFile, '', 'utf8')
12
12
  await fs.writeFile(config.lastVerificationOutputFile, '', 'utf8')
13
13
  await fs.writeFile(config.changedFilesFile, '', 'utf8')
14
+ await fs.writeFile(config.lastPromptFile, '', 'utf8')
15
+ await fs.writeFile(config.lastIterationSummaryFile, '', 'utf8')
14
16
 
15
17
  await fs.appendFile(config.logFile, '', 'utf8')
16
18
  await fs.appendFile(config.telemetryJsonl, '', 'utf8')
@@ -43,6 +45,17 @@ export async function appendTelemetry(config, event) {
43
45
  event.changedFilesCount,
44
46
  event.verificationStatus,
45
47
  event.retryCount,
48
+ event.role,
49
+ event.model,
50
+ event.toolCalls,
51
+ event.toolErrors,
52
+ event.messageUpdates,
53
+ event.stopReason,
54
+ event.loopDetected,
55
+ event.loopSignature,
56
+ event.testerVerdict,
57
+ event.commitPlanFound,
58
+ event.terminalReason,
46
59
  event.notes,
47
60
  ].map(csvEscape).join(',')
48
61
 
@@ -4,6 +4,8 @@
4
4
  "taskFile": "TODOS.md",
5
5
  "developerInstructionsFile": "pi/DEVELOPER.md",
6
6
  "testerInstructionsFile": "pi/TESTER.md",
7
+ "commitMode": "agent",
8
+ "promptMode": "compact",
7
9
  "piModel": "local/text-model",
8
10
  "models": {
9
11
  "local/text-model": {
@@ -32,7 +34,6 @@
32
34
  "developerFix": "local/text-model",
33
35
  "developerRetry": "local/text-model",
34
36
  "tester": "local/tester-model",
35
- "testerCommit": "local/tester-model",
36
37
  "visualReview": "local/vision-model"
37
38
  },
38
39
  "testCommand": "pnpm test:e2e:smoke",