@cueloop/schema 0.1.0-alpha.89 → 0.1.0-alpha.90

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/types.ts +18 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cueloop/schema",
3
- "version": "0.1.0-alpha.89",
3
+ "version": "0.1.0-alpha.90",
4
4
  "description": "The Thread primitive: types, markdown block model, quote-primary anchors, feedback serialization",
5
5
  "homepage": "https://github.com/mmurakaru/cueloop#readme",
6
6
  "bugs": {
package/src/types.ts CHANGED
@@ -59,6 +59,12 @@ export interface ArtifactMeta {
59
59
  /** The workflow that submitted this artifact, distinct from its artifact type. */
60
60
  workflow?: WorkflowKind;
61
61
  cwd?: string;
62
+ /** Diff source selected when the Thread was created; an older Thread without this field uses Git. */
63
+ vcs?: string;
64
+ /** Logical change identity when the VCS keeps one through rewrites. */
65
+ vcsChangeId?: string;
66
+ /** Exact source revision captured for this diff. */
67
+ vcsRevisionId?: string;
62
68
  agent?: string;
63
69
  /** Agent-native session id, for resume/fork context. */
64
70
  agentSessionId?: string;
@@ -87,6 +93,14 @@ export interface ArtifactMeta {
87
93
  snapshot?: boolean;
88
94
  }
89
95
 
96
+ /** VCS provenance for a submitted diff revision. */
97
+ export interface DiffSource {
98
+ vcs: string;
99
+ changeId?: string;
100
+ revisionId?: string;
101
+ baseRevisionId?: string;
102
+ }
103
+
90
104
  /** Full old/new contents of one changed file, keyed by its repo-relative path. */
91
105
  /** How a file changed, so curation emits the right create/delete headers. */
92
106
  export type DiffFileStatus = "added" | "modified" | "deleted";
@@ -280,6 +294,10 @@ export interface Revision {
280
294
  revision: number;
281
295
  content: string;
282
296
  submittedAt: string;
297
+ /** Exact VCS source for this reviewed text, when one was captured. */
298
+ source?: DiffSource;
299
+ /** File contents captured with this diff revision, retained across refreshes. */
300
+ files?: DiffFileContents[];
283
301
  }
284
302
 
285
303
  export type SessionStatus = "pending" | "resolved";