pi-fabric 0.130.0 → 0.130.1

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.
@@ -3262,6 +3262,9 @@ var FabricState = class {
3262
3262
  participantInfos(options = {}) {
3263
3263
  return this.#current()?.participantInfos(options) ?? [];
3264
3264
  }
3265
+ residentAgentForUi(id) {
3266
+ return this.#current()?.residentAgentForUi(id);
3267
+ }
3265
3268
  queueUserMessage(targetId, message, delivery) {
3266
3269
  return this.#required().queueUserMessage(targetId, message, delivery);
3267
3270
  }
@@ -3862,11 +3865,20 @@ var createDashboardSnapshot = (state, events, context, activityRuns, cache, immu
3862
3865
  const meshEntries = state.config.mesh.enabled ? state.mesh.list("", 200) : [];
3863
3866
  const shells = state.shellJobs?.list().filter((job) => job.spilledAt !== void 0 || job.monitor) ?? [];
3864
3867
  const sessionLabel = typeof state.sessionLabel === "function" ? state.sessionLabel() : void 0;
3868
+ const residentLogs = {};
3869
+ if (typeof state.residentAgentForUi === "function") {
3870
+ for (const participant of participants) {
3871
+ if (participant.kind !== "agent" || participant.rootId !== main.id || participant.residency !== "durable") continue;
3872
+ const record = state.residentAgentForUi(participant.id);
3873
+ if (record && isRunRecord(record) && record.logFile) residentLogs[participant.id] = record.logFile;
3874
+ }
3875
+ }
3865
3876
  const inputs = {
3866
3877
  runs,
3867
3878
  agentRecords,
3868
3879
  actorRecords,
3869
3880
  participants,
3881
+ residentLogs,
3870
3882
  main,
3871
3883
  peers,
3872
3884
  shells,
@@ -3987,6 +3999,7 @@ var createDashboardSnapshot = (state, events, context, activityRuns, cache, immu
3987
3999
  cwd: participant.cwd ?? "",
3988
4000
  ...participant.model ? { model: participant.model } : {},
3989
4001
  ...participant.thinking ? { thinking: participant.thinking } : {},
4002
+ ...residentLogs[participant.id] ? { logFile: residentLogs[participant.id] } : {},
3990
4003
  ...participant.currentTool ? { currentTool: participant.currentTool } : {},
3991
4004
  startedAt: participant.startedAt,
3992
4005
  updatedAt: participant.updatedAt,
@@ -6786,4 +6799,4 @@ export {
6786
6799
  FABRIC_MANAGED_HOST_VERSION,
6787
6800
  createFabricExtension
6788
6801
  };
6789
- //# sourceMappingURL=chunk-FCLVPCPN.js.map
6802
+ //# sourceMappingURL=chunk-R6EZAW76.js.map