@ship.zone/runner 2.1.0 → 3.0.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.
Files changed (179) hide show
  1. package/.smartconfig.json +99 -2
  2. package/changelog.md +58 -0
  3. package/dist_rust/runnerworkspace_linux_amd64_musl +0 -0
  4. package/dist_rust/runnerworkspace_linux_amd64_musl.third-party-notices.json +679 -0
  5. package/dist_rust/runnerworkspace_linux_amd64_musl.third-party-notices.txt +15719 -0
  6. package/dist_rust/runnerworkspace_linux_amd64_musl.tsrust-build.json +5 -5
  7. package/dist_rust/runnerworkspace_linux_arm64_musl +0 -0
  8. package/dist_rust/runnerworkspace_linux_arm64_musl.third-party-notices.json +679 -0
  9. package/dist_rust/runnerworkspace_linux_arm64_musl.third-party-notices.txt +15719 -0
  10. package/dist_rust/runnerworkspace_linux_arm64_musl.tsrust-build.json +5 -5
  11. package/dist_ts/00_commitinfo_data.d.ts +8 -0
  12. package/dist_ts/00_commitinfo_data.js +9 -0
  13. package/dist_ts/api-client.d.ts +46 -0
  14. package/dist_ts/api-client.js +592 -0
  15. package/dist_ts/artifact-manager.d.ts +11 -0
  16. package/dist_ts/artifact-manager.js +140 -0
  17. package/dist_ts/attempt-state.d.ts +18 -0
  18. package/dist_ts/attempt-state.js +151 -0
  19. package/dist_ts/cache-manager.d.ts +13 -0
  20. package/dist_ts/cache-manager.js +300 -0
  21. package/dist_ts/cli-entry.d.ts +2 -0
  22. package/dist_ts/cli-entry.js +4 -0
  23. package/dist_ts/cli.d.ts +14 -0
  24. package/dist_ts/cli.js +215 -0
  25. package/dist_ts/config.d.ts +8 -0
  26. package/dist_ts/config.js +445 -0
  27. package/dist_ts/errors.d.ts +41 -0
  28. package/dist_ts/errors.js +90 -0
  29. package/dist_ts/filesystem.d.ts +73 -0
  30. package/dist_ts/filesystem.js +207 -0
  31. package/dist_ts/index.d.ts +16 -0
  32. package/dist_ts/index.js +17 -0
  33. package/dist_ts/interfaces.d.ts +614 -0
  34. package/dist_ts/interfaces.js +3 -0
  35. package/dist_ts/log-sender.d.ts +26 -0
  36. package/dist_ts/log-sender.js +124 -0
  37. package/dist_ts/oci-executor.d.ts +155 -0
  38. package/dist_ts/oci-executor.js +2238 -0
  39. package/dist_ts/plugins.d.ts +19 -0
  40. package/dist_ts/plugins.js +23 -0
  41. package/dist_ts/protocol-validator.d.ts +39 -0
  42. package/dist_ts/protocol-validator.js +483 -0
  43. package/dist_ts/redactor.d.ts +78 -0
  44. package/dist_ts/redactor.js +235 -0
  45. package/dist_ts/registration-state.d.ts +16 -0
  46. package/dist_ts/registration-state.js +171 -0
  47. package/dist_ts/runner.d.ts +64 -0
  48. package/dist_ts/runner.js +882 -0
  49. package/dist_ts/source-workspace.d.ts +10 -0
  50. package/dist_ts/source-workspace.js +125 -0
  51. package/dist_ts/spec-version.d.ts +11 -0
  52. package/dist_ts/spec-version.js +41 -0
  53. package/dist_ts/staging-scavenger.d.ts +7 -0
  54. package/dist_ts/staging-scavenger.js +63 -0
  55. package/dist_ts/state-owner.d.ts +74 -0
  56. package/dist_ts/state-owner.js +289 -0
  57. package/dist_ts/transfer-archive.d.ts +78 -0
  58. package/dist_ts/transfer-archive.js +1619 -0
  59. package/dist_ts/validation.d.ts +11 -0
  60. package/dist_ts/validation.js +79 -0
  61. package/dist_ts/wire-schema.d.ts +10 -0
  62. package/dist_ts/wire-schema.js +114 -0
  63. package/native-notices/crates/bitflags-2.13.1/license-apache +201 -0
  64. package/native-notices/crates/bitflags-2.13.1/license-mit +25 -0
  65. package/native-notices/crates/cc-1.8.0/license-apache +201 -0
  66. package/native-notices/crates/cc-1.8.0/license-mit +25 -0
  67. package/native-notices/crates/cfg-if-1.0.4/license-apache +201 -0
  68. package/native-notices/crates/cfg-if-1.0.4/license-mit +25 -0
  69. package/native-notices/crates/cfg_aliases-0.2.2/license +9 -0
  70. package/native-notices/crates/cfg_aliases-0.2.2/notices.md +26 -0
  71. package/native-notices/crates/find-msvc-tools-0.1.14/license-apache +201 -0
  72. package/native-notices/crates/find-msvc-tools-0.1.14/license-mit +25 -0
  73. package/native-notices/crates/itoa-1.0.18/license-apache +176 -0
  74. package/native-notices/crates/itoa-1.0.18/license-mit +23 -0
  75. package/native-notices/crates/libc-0.2.189/license-apache +176 -0
  76. package/native-notices/crates/libc-0.2.189/license-mit +25 -0
  77. package/native-notices/crates/memchr-2.8.3/copying +3 -0
  78. package/native-notices/crates/memchr-2.8.3/license-mit +21 -0
  79. package/native-notices/crates/memchr-2.8.3/unlicense +24 -0
  80. package/native-notices/crates/nix-0.30.1/license +21 -0
  81. package/native-notices/crates/proc-macro2-1.0.107/license-apache +176 -0
  82. package/native-notices/crates/proc-macro2-1.0.107/license-mit +23 -0
  83. package/native-notices/crates/quote-1.0.47/license-apache +176 -0
  84. package/native-notices/crates/quote-1.0.47/license-mit +23 -0
  85. package/native-notices/crates/serde-1.0.229/license-apache +176 -0
  86. package/native-notices/crates/serde-1.0.229/license-mit +23 -0
  87. package/native-notices/crates/serde_core-1.0.229/license-apache +176 -0
  88. package/native-notices/crates/serde_core-1.0.229/license-mit +23 -0
  89. package/native-notices/crates/serde_derive-1.0.229/license-apache +176 -0
  90. package/native-notices/crates/serde_derive-1.0.229/license-mit +23 -0
  91. package/native-notices/crates/serde_json-1.0.151/license-apache +176 -0
  92. package/native-notices/crates/serde_json-1.0.151/license-mit +23 -0
  93. package/native-notices/crates/shlex-2.0.1/license-apache +13 -0
  94. package/native-notices/crates/shlex-2.0.1/license-mit +21 -0
  95. package/native-notices/crates/syn-3.0.3/license-apache +176 -0
  96. package/native-notices/crates/syn-3.0.3/license-mit +23 -0
  97. package/native-notices/crates/tikv-jemalloc-sys-0.7.1+5.3.1-0-g81034ce1f1373e37dc865038e1bc8eeecf559ce8/license-apache +201 -0
  98. package/native-notices/crates/tikv-jemalloc-sys-0.7.1+5.3.1-0-g81034ce1f1373e37dc865038e1bc8eeecf559ce8/license-mit +25 -0
  99. package/native-notices/crates/tikv-jemallocator-0.7.0/license-apache +201 -0
  100. package/native-notices/crates/tikv-jemallocator-0.7.0/license-mit +25 -0
  101. package/native-notices/crates/unicode-ident-1.0.24/license-apache +176 -0
  102. package/native-notices/crates/unicode-ident-1.0.24/license-mit +23 -0
  103. package/native-notices/crates/unicode-ident-1.0.24/license-unicode +39 -0
  104. package/native-notices/crates/zmij-1.0.23/license-mit +23 -0
  105. package/native-notices/manifest.json +763 -0
  106. package/native-notices/native/tikv-jemalloc-sys-0.7.1+5.3.1-0-g81034ce1f1373e37dc865038e1bc8eeecf559ce8/jemalloc-5.3.1/jemalloc-copying +27 -0
  107. package/native-notices/readme.md +46 -0
  108. package/native-notices/runtime/gcc/gpl-3.0.txt +674 -0
  109. package/native-notices/runtime/gcc/runtime-library-exception-3.1.txt +73 -0
  110. package/native-notices/runtime/libunwind-22.1.2/license.txt +311 -0
  111. package/native-notices/runtime/musl-1.2.5/copyright +193 -0
  112. package/native-notices/rust/compiler-builtins-license.txt +275 -0
  113. package/native-notices/rust/copyright-library.html +8266 -0
  114. package/native-notices/rust/crates/addr2line-0.25.1/license-apache +201 -0
  115. package/native-notices/rust/crates/addr2line-0.25.1/license-mit +25 -0
  116. package/native-notices/rust/crates/adler2-2.0.1/license-0bsd +12 -0
  117. package/native-notices/rust/crates/adler2-2.0.1/license-apache +201 -0
  118. package/native-notices/rust/crates/adler2-2.0.1/license-mit +23 -0
  119. package/native-notices/rust/crates/memchr-2.7.6/copying +3 -0
  120. package/native-notices/rust/crates/memchr-2.7.6/license-mit +21 -0
  121. package/native-notices/rust/crates/memchr-2.7.6/unlicense +24 -0
  122. package/native-notices/rust/crates/miniz_oxide-0.8.9/license +25 -0
  123. package/native-notices/rust/crates/miniz_oxide-0.8.9/license-apache.md +177 -0
  124. package/native-notices/rust/crates/miniz_oxide-0.8.9/license-mit.md +24 -0
  125. package/native-notices/rust/crates/miniz_oxide-0.8.9/license-zlib.md +14 -0
  126. package/native-notices/rust/crates/object-0.37.3/license-apache +201 -0
  127. package/native-notices/rust/crates/object-0.37.3/license-mit +25 -0
  128. package/native-notices/rust/licenses/apache-2.0.txt +73 -0
  129. package/native-notices/rust/licenses/bsd-2-clause.txt +9 -0
  130. package/native-notices/rust/licenses/cc-by-sa-4.0.txt +427 -0
  131. package/native-notices/rust/licenses/gcc-exception-3.1.txt +30 -0
  132. package/native-notices/rust/licenses/gpl-2.0-only.txt +133 -0
  133. package/native-notices/rust/licenses/gpl-3.0-or-later.txt +202 -0
  134. package/native-notices/rust/licenses/isc.txt +7 -0
  135. package/native-notices/rust/licenses/llvm-exception.txt +15 -0
  136. package/native-notices/rust/licenses/mit.txt +9 -0
  137. package/native-notices/rust/licenses/ncsa.txt +29 -0
  138. package/native-notices/rust/licenses/ofl-1.1.txt +43 -0
  139. package/native-notices/rust/licenses/unicode-3.0.txt +39 -0
  140. package/package.json +24 -22
  141. package/readme.md +91 -40
  142. package/rust/.cargo/config.toml +1 -1
  143. package/rust/Cargo.toml +1 -1
  144. package/rust/src/lib.rs +156 -1
  145. package/rust/src/main.rs +1 -1
  146. package/rust-toolchain.toml +4 -0
  147. package/ts/00_commitinfo_data.ts +1 -1
  148. package/ts/api-client.ts +10 -7
  149. package/ts/artifact-manager.ts +9 -7
  150. package/ts/attempt-state.ts +75 -84
  151. package/ts/cache-manager.ts +22 -28
  152. package/ts/cli-entry.ts +4 -0
  153. package/ts/cli.ts +56 -45
  154. package/ts/config.ts +50 -39
  155. package/ts/errors.ts +19 -0
  156. package/ts/filesystem.ts +316 -0
  157. package/ts/index.ts +16 -15
  158. package/ts/interfaces.ts +2 -2
  159. package/ts/log-sender.ts +4 -4
  160. package/ts/oci-executor.ts +235 -383
  161. package/ts/plugins.ts +21 -3
  162. package/ts/protocol-validator.ts +5 -5
  163. package/ts/redactor.ts +2 -2
  164. package/ts/registration-state.ts +82 -90
  165. package/ts/runner.ts +30 -17
  166. package/ts/source-workspace.ts +11 -8
  167. package/ts/spec-version.ts +2 -2
  168. package/ts/staging-scavenger.ts +37 -26
  169. package/ts/state-owner.ts +346 -0
  170. package/ts/transfer-archive.ts +214 -243
  171. package/ts/validation.ts +1 -1
  172. package/ts/wire-schema.ts +3 -3
  173. package/deno.json +0 -56
  174. package/deno.lock +0 -1495
  175. package/dist_npm/mod.d.ts +0 -967
  176. package/dist_npm/mod.js +0 -10058
  177. package/mod.ts +0 -8
  178. package/musl-copyright.md +0 -81
  179. package/third-party-licenses.md +0 -187
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "format": "tsrust.build-provenance.v2",
3
- "binarySha256": "c161d5fe0fe38c37fc3fbd3290161821bd420195296a16d22389bd2efd6d10bf",
3
+ "binarySha256": "6b3c9d7a0337fc65597bbb42f6c4dfd2006c5aafc99194e0c181e16f5cb04230",
4
4
  "buildInfo": {
5
5
  "projectName": "@ship.zone/runner",
6
- "projectVersion": "2.1.0",
7
- "gitCommit": "aa3d0f5a51d6f846c8a73fb84f1eed7ebd003f0a",
6
+ "projectVersion": "3.0.0",
7
+ "gitCommit": "db3f9ca8c294e322653b5a5fad2d60cd7ae39001",
8
8
  "gitDirty": false,
9
- "builtAt": "2026-10-13T13:07:10.387Z",
10
- "tsrustVersion": "4.4.0",
9
+ "builtAt": "2026-10-15T15:42:28.615Z",
10
+ "tsrustVersion": "4.6.0",
11
11
  "binary": "runnerworkspace",
12
12
  "target": "linux_arm64_musl"
13
13
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * autocreated commitinfo by @push.rocks/commitinfo
3
+ */
4
+ export declare const commitinfo: {
5
+ name: string;
6
+ version: string;
7
+ description: string;
8
+ };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * autocreated commitinfo by @push.rocks/commitinfo
3
+ */
4
+ export const commitinfo = {
5
+ name: '@ship.zone/runner',
6
+ version: '3.0.0',
7
+ description: 'The isolated OCI job runner for ship.zone CI/CD'
8
+ };
9
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSxtQkFBbUI7SUFDekIsT0FBTyxFQUFFLE9BQU87SUFDaEIsV0FBVyxFQUFFLGlEQUFpRDtDQUMvRCxDQUFBIn0=
@@ -0,0 +1,46 @@
1
+ import type { IAbandonJobRequest, IAcceptJobRequest, IClaimJobRequest, IClaimJobResponse, ICompleteJobRequest, ICompleteJobResponse, IDiscoveryResponse, IJobHeartbeatRequest, IJobHeartbeatResponse, IJobIdentity, IJobSource, ILogAcknowledgement, ILogChunk, IRecoverAttemptRequest, IRegisterRunnerRequest, IRegisterRunnerResponse, IRunnerHeartbeatRequest, IRunnerHeartbeatResponse, IStartSessionRequest, IStartSessionResponse, ITransferDownload, ITransferMetadata, ITransferRecord, TCacheDownload, TOpenTransferBody } from './interfaces.js';
2
+ export type TRunnerFetch = (input: string | URL | Request, init?: RequestInit) => Promise<Response>;
3
+ export interface IRunnerApiClientOptions {
4
+ controlPlaneUrl: string;
5
+ allowInsecureLoopback: boolean;
6
+ requestTimeoutMs: number;
7
+ sourceTransferTimeoutMs?: number;
8
+ artifactUploadTimeoutMs?: number;
9
+ cacheTransferTimeoutMs?: number;
10
+ maximumResponseBytes: number;
11
+ runnerToken?: string;
12
+ fetch?: TRunnerFetch;
13
+ sleep?: (milliseconds: number, signal?: AbortSignal) => Promise<void>;
14
+ }
15
+ export declare class RunnerApiClient {
16
+ private readonly options;
17
+ private readonly origin;
18
+ private readonly baseUrl;
19
+ private readonly fetchImplementation;
20
+ private readonly sleep;
21
+ private runnerToken?;
22
+ constructor(options: IRunnerApiClientOptions);
23
+ setRunnerToken(token: string): void;
24
+ discover(signal?: AbortSignal): Promise<IDiscoveryResponse>;
25
+ register(request: IRegisterRunnerRequest, bootstrapToken: string, signal?: AbortSignal): Promise<IRegisterRunnerResponse>;
26
+ startSession(request: IStartSessionRequest, signal?: AbortSignal): Promise<IStartSessionResponse>;
27
+ heartbeatRunner(request: IRunnerHeartbeatRequest, signal?: AbortSignal): Promise<IRunnerHeartbeatResponse>;
28
+ claimJob(request: IClaimJobRequest, signal?: AbortSignal): Promise<IClaimJobResponse>;
29
+ acceptJob(request: IAcceptJobRequest, signal?: AbortSignal): Promise<void>;
30
+ heartbeatJob(request: IJobHeartbeatRequest, signal?: AbortSignal): Promise<IJobHeartbeatResponse>;
31
+ appendLog(chunk: ILogChunk, signal?: AbortSignal): Promise<ILogAcknowledgement>;
32
+ completeJob(request: ICompleteJobRequest, signal?: AbortSignal): Promise<ICompleteJobResponse>;
33
+ abandonJob(request: IAbandonJobRequest, signal?: AbortSignal): Promise<void>;
34
+ recoverAttempt(request: IRecoverAttemptRequest, signal?: AbortSignal): Promise<void>;
35
+ downloadSource(identity: IJobIdentity, source: IJobSource, signal?: AbortSignal): Promise<ITransferDownload>;
36
+ downloadCache(identity: IJobIdentity, name: string, signal?: AbortSignal): Promise<TCacheDownload>;
37
+ uploadArtifact(identity: IJobIdentity, name: string, transferRequestId: string, metadata: ITransferMetadata, openBody: TOpenTransferBody, signal?: AbortSignal): Promise<ITransferRecord>;
38
+ uploadCache(identity: IJobIdentity, name: string, transferRequestId: string, metadata: ITransferMetadata, openBody: TOpenTransferBody, signal?: AbortSignal): Promise<ITransferRecord>;
39
+ private requireRunnerToken;
40
+ private jobPath;
41
+ private requestJson;
42
+ private fetchTransfer;
43
+ private uploadTransfer;
44
+ private parseTransferDownload;
45
+ private throwResponseError;
46
+ }