returns a path, and ensures it's created, to the agents history directory
Initialize session directory Session directory structure: .sfdx/agents//sessions// ├── transcript.jsonl # All transcript entries (one per line) ├── traces/ # Individual trace files │ ├── .json │ └── .json └── metadata.json # Session metadata (start time, end time, planIds, etc.)
gotten from Agent.getAgentIdForStorage()
the preview's start call .SessionId
path to where history/metadata/transcripts are stored inside of local .sfdx
returns a path, and ensures it's created, to the agents history directory
Initialize session directory Session directory structure: .sfdx/agents//sessions//
├── transcript.jsonl # All transcript entries (one per line)
├── traces/ # Individual trace files
│ ├── .json
│ └── .json
└── metadata.json # Session metadata (start time, end time, planIds, etc.)