runpane 2.4.185 → 2.4.186

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/dist/handoff.d.ts CHANGED
@@ -76,5 +76,38 @@ export interface NoteOrigin {
76
76
  }
77
77
  /** The note an agent fills in: front matter for the origin, then one section per required heading. */
78
78
  export declare function noteTemplate(origin: NoteOrigin): string;
79
+ /** What happened to the sender's session, in the command's output and JSON. */
80
+ export interface ContinuityReport {
81
+ /** True when the sender's session is (or, on a dry run, would be) carried and resumed. */
82
+ carried: boolean;
83
+ /** Absent on a dry run. `fresh-agent` is the note route: a new agent, not the same session. */
84
+ result?: 'continued' | 'inconclusive' | 'not-continued' | 'fresh-agent';
85
+ agent?: string;
86
+ /** The sender's native session id. */
87
+ sessionId?: string;
88
+ /** The id the receiver resumes: the sender's, or its fork's on this machine. */
89
+ resumedId?: string;
90
+ fork?: boolean;
91
+ files?: number;
92
+ bytes?: number;
93
+ checks?: {
94
+ /** Pane launched the agent's own resume for resumedId. */
95
+ resumedById: boolean;
96
+ /** Pane recorded resumedId as the receiver's id, so a restart resumes it. */
97
+ restartResumes: boolean;
98
+ /** The receiver's screen showed the copy's last message; null when there was nothing to compare. */
99
+ historyLoaded: boolean | null;
100
+ /**
101
+ * Forks only: everything the sender's session held before the fork is unchanged, byte for byte,
102
+ * and nothing else changed it. When `originalAppended` is set, the sender's transcript also grew:
103
+ * the sender is the running agent, and its own current turn appended to it.
104
+ */
105
+ originalUntouched?: boolean;
106
+ /** Forks only: the running sender's own turn appended to its transcript during the handoff. */
107
+ originalAppended?: true;
108
+ };
109
+ reason: string;
110
+ next?: string;
111
+ }
79
112
  export declare function runHandoff(parsed: ParsedArgs): Promise<number>;
80
113
  //# sourceMappingURL=handoff.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"handoff.d.ts","sourceRoot":"","sources":["../src/handoff.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,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