@foss.global/interfaces 0.7.0 → 0.8.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.
- package/changelog.md +9 -0
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/data/runner.d.ts +20 -1
- package/package.json +1 -1
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/data/runner.ts +22 -1
package/changelog.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2026-07-21 - 0.8.0
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
- add repository-scoped CI cache protocol contracts (ci-caches)
|
|
8
|
+
- Add exact cache key, declared restore path, save policy, and retention job specifications.
|
|
9
|
+
- Allow runners to advertise cache capability and return generation-fenced save metadata.
|
|
10
|
+
- Add export coverage for the new cache contract shapes.
|
|
11
|
+
|
|
3
12
|
## 2026-07-21 - 0.7.0
|
|
4
13
|
|
|
5
14
|
### Features
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@foss.global/interfaces',
|
|
6
|
-
version: '0.
|
|
6
|
+
version: '0.8.0',
|
|
7
7
|
description: 'Shared TypeScript interfaces and TypedRequest contracts for the foss.global Git platform ecosystem.'
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSx5QkFBeUI7SUFDL0IsT0FBTyxFQUFFLE9BQU87SUFDaEIsV0FBVyxFQUFFLHFHQUFxRztDQUNuSCxDQUFBIn0=
|
package/dist_ts/data/runner.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export type TOciRuntime = 'docker' | 'podman';
|
|
|
4
4
|
export type TJobNetwork = 'none' | 'bridge';
|
|
5
5
|
export type TLogStream = 'stdout' | 'stderr' | 'runner';
|
|
6
6
|
export type TJobArtifactWhen = 'always' | 'success' | 'failure';
|
|
7
|
+
export type TJobCacheSaveWhen = 'always' | 'success';
|
|
7
8
|
export type TJobCompletionStatus = 'succeeded' | 'failed' | 'canceled' | 'timed_out' | 'system_error';
|
|
8
9
|
export type TCiJobState = 'queued' | 'running' | TJobCompletionStatus;
|
|
9
10
|
export interface IRunnerCredential {
|
|
@@ -17,7 +18,7 @@ export interface IRunnerCapabilities {
|
|
|
17
18
|
networks: TJobNetwork[];
|
|
18
19
|
sourceArchives: ['tar.gz'];
|
|
19
20
|
artifacts: boolean;
|
|
20
|
-
caches:
|
|
21
|
+
caches: boolean;
|
|
21
22
|
serviceContainers: false;
|
|
22
23
|
}
|
|
23
24
|
export interface IRegisterRunnerRequest {
|
|
@@ -71,6 +72,13 @@ export interface IJobArtifactSpec {
|
|
|
71
72
|
required?: boolean;
|
|
72
73
|
retentionDays?: number;
|
|
73
74
|
}
|
|
75
|
+
export interface IJobCacheSpec {
|
|
76
|
+
name: string;
|
|
77
|
+
key: string;
|
|
78
|
+
paths: string[];
|
|
79
|
+
saveWhen?: TJobCacheSaveWhen;
|
|
80
|
+
retentionDays?: number;
|
|
81
|
+
}
|
|
74
82
|
export interface IJobSpec {
|
|
75
83
|
image: string;
|
|
76
84
|
command: string[];
|
|
@@ -81,6 +89,7 @@ export interface IJobSpec {
|
|
|
81
89
|
resources?: IJobResources;
|
|
82
90
|
source?: IJobSourceArchive;
|
|
83
91
|
artifacts?: IJobArtifactSpec[];
|
|
92
|
+
caches?: IJobCacheSpec[];
|
|
84
93
|
}
|
|
85
94
|
export interface IJobLease {
|
|
86
95
|
jobId: string;
|
|
@@ -135,6 +144,16 @@ export interface ICiArtifactUploadResponse {
|
|
|
135
144
|
createdAt: string;
|
|
136
145
|
expiresAt: string;
|
|
137
146
|
}
|
|
147
|
+
export interface ICiCacheSaveResponse {
|
|
148
|
+
name: string;
|
|
149
|
+
key: string;
|
|
150
|
+
generation: number;
|
|
151
|
+
sha256: string;
|
|
152
|
+
sizeBytes: number;
|
|
153
|
+
createdAt: string;
|
|
154
|
+
updatedAt: string;
|
|
155
|
+
expiresAt: string;
|
|
156
|
+
}
|
|
138
157
|
export interface ICompleteJobRequest extends IJobMutationIdentity {
|
|
139
158
|
status: TJobCompletionStatus;
|
|
140
159
|
exitCode: number | null;
|
package/package.json
CHANGED
package/ts/00_commitinfo_data.ts
CHANGED
package/ts/data/runner.ts
CHANGED
|
@@ -5,6 +5,7 @@ export type TOciRuntime = 'docker' | 'podman';
|
|
|
5
5
|
export type TJobNetwork = 'none' | 'bridge';
|
|
6
6
|
export type TLogStream = 'stdout' | 'stderr' | 'runner';
|
|
7
7
|
export type TJobArtifactWhen = 'always' | 'success' | 'failure';
|
|
8
|
+
export type TJobCacheSaveWhen = 'always' | 'success';
|
|
8
9
|
export type TJobCompletionStatus =
|
|
9
10
|
| 'succeeded'
|
|
10
11
|
| 'failed'
|
|
@@ -25,7 +26,7 @@ export interface IRunnerCapabilities {
|
|
|
25
26
|
networks: TJobNetwork[];
|
|
26
27
|
sourceArchives: ['tar.gz'];
|
|
27
28
|
artifacts: boolean;
|
|
28
|
-
caches:
|
|
29
|
+
caches: boolean;
|
|
29
30
|
serviceContainers: false;
|
|
30
31
|
}
|
|
31
32
|
|
|
@@ -89,6 +90,14 @@ export interface IJobArtifactSpec {
|
|
|
89
90
|
retentionDays?: number;
|
|
90
91
|
}
|
|
91
92
|
|
|
93
|
+
export interface IJobCacheSpec {
|
|
94
|
+
name: string;
|
|
95
|
+
key: string;
|
|
96
|
+
paths: string[];
|
|
97
|
+
saveWhen?: TJobCacheSaveWhen;
|
|
98
|
+
retentionDays?: number;
|
|
99
|
+
}
|
|
100
|
+
|
|
92
101
|
export interface IJobSpec {
|
|
93
102
|
image: string;
|
|
94
103
|
command: string[];
|
|
@@ -99,6 +108,7 @@ export interface IJobSpec {
|
|
|
99
108
|
resources?: IJobResources;
|
|
100
109
|
source?: IJobSourceArchive;
|
|
101
110
|
artifacts?: IJobArtifactSpec[];
|
|
111
|
+
caches?: IJobCacheSpec[];
|
|
102
112
|
}
|
|
103
113
|
|
|
104
114
|
export interface IJobLease {
|
|
@@ -162,6 +172,17 @@ export interface ICiArtifactUploadResponse {
|
|
|
162
172
|
expiresAt: string;
|
|
163
173
|
}
|
|
164
174
|
|
|
175
|
+
export interface ICiCacheSaveResponse {
|
|
176
|
+
name: string;
|
|
177
|
+
key: string;
|
|
178
|
+
generation: number;
|
|
179
|
+
sha256: string;
|
|
180
|
+
sizeBytes: number;
|
|
181
|
+
createdAt: string;
|
|
182
|
+
updatedAt: string;
|
|
183
|
+
expiresAt: string;
|
|
184
|
+
}
|
|
185
|
+
|
|
165
186
|
export interface ICompleteJobRequest extends IJobMutationIdentity {
|
|
166
187
|
status: TJobCompletionStatus;
|
|
167
188
|
exitCode: number | null;
|