@ship.zone/runner 0.1.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/.smartconfig.json +48 -0
- package/changelog.md +12 -0
- package/deno.json +41 -0
- package/deno.lock +1843 -0
- package/dist_npm/mod.d.ts +689 -0
- package/dist_npm/mod.js +8980 -0
- package/dist_rust/runnerworkspace_linux_amd64_musl +0 -0
- package/dist_rust/runnerworkspace_linux_arm64_musl +0 -0
- package/license.md +18 -0
- package/mod.ts +8 -0
- package/musl-copyright.md +81 -0
- package/package.json +58 -0
- package/readme.md +274 -0
- package/rust/.cargo/config.toml +5 -0
- package/rust/Cargo.lock +144 -0
- package/rust/Cargo.toml +17 -0
- package/rust/src/lib.rs +1784 -0
- package/rust/src/main.rs +6 -0
- package/third-party-licenses.md +95 -0
- package/ts/00_commitinfo_data.ts +8 -0
- package/ts/api-client.ts +1059 -0
- package/ts/artifact-manager.ts +218 -0
- package/ts/attempt-state.ts +190 -0
- package/ts/cache-manager.ts +431 -0
- package/ts/cli.ts +239 -0
- package/ts/config.ts +724 -0
- package/ts/errors.ts +68 -0
- package/ts/index.ts +13 -0
- package/ts/interfaces.ts +547 -0
- package/ts/log-sender.ts +134 -0
- package/ts/oci-executor.ts +2472 -0
- package/ts/plugins.ts +11 -0
- package/ts/protocol-validator.ts +535 -0
- package/ts/redactor.ts +41 -0
- package/ts/registration-state.ts +253 -0
- package/ts/runner.ts +1036 -0
- package/ts/source-workspace.ts +161 -0
- package/ts/staging-scavenger.ts +62 -0
- package/ts/transfer-archive.ts +1605 -0
- package/ts/validation.ts +77 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@git.zone/cli": {
|
|
3
|
+
"schemaVersion": 2,
|
|
4
|
+
"projectType": "npm",
|
|
5
|
+
"module": {
|
|
6
|
+
"githost": "code.foss.global",
|
|
7
|
+
"gitscope": "ship.zone",
|
|
8
|
+
"gitrepo": "runner",
|
|
9
|
+
"description": "The isolated OCI job runner for ship.zone CI/CD",
|
|
10
|
+
"npmPackagename": "@ship.zone/runner",
|
|
11
|
+
"license": "MIT"
|
|
12
|
+
},
|
|
13
|
+
"release": {
|
|
14
|
+
"confirmation": "prompt",
|
|
15
|
+
"preflight": {
|
|
16
|
+
"requireCleanTree": true,
|
|
17
|
+
"test": true,
|
|
18
|
+
"build": true
|
|
19
|
+
},
|
|
20
|
+
"targets": {
|
|
21
|
+
"git": {
|
|
22
|
+
"enabled": true,
|
|
23
|
+
"remote": "origin",
|
|
24
|
+
"pushBranch": true,
|
|
25
|
+
"pushTags": true
|
|
26
|
+
},
|
|
27
|
+
"npm": {
|
|
28
|
+
"enabled": true,
|
|
29
|
+
"registries": [
|
|
30
|
+
"https://verdaccio.lossless.digital",
|
|
31
|
+
"https://registry.npmjs.org"
|
|
32
|
+
],
|
|
33
|
+
"accessLevel": "public",
|
|
34
|
+
"alreadyPublished": "success"
|
|
35
|
+
},
|
|
36
|
+
"docker": {
|
|
37
|
+
"enabled": false,
|
|
38
|
+
"engine": "tsdocker",
|
|
39
|
+
"patterns": []
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"@git.zone/tsrust": {
|
|
45
|
+
"targets": ["linux_amd64_musl", "linux_arm64_musl"],
|
|
46
|
+
"static": true
|
|
47
|
+
}
|
|
48
|
+
}
|
package/changelog.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 2026-07-31 - 0.1.0
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
- implement the foss-ci-runner v2 execution model (runner)
|
|
8
|
+
- Add exact protocol validation, fenced lifecycle handling, durable recovery, bounded transfers,
|
|
9
|
+
redacted logs, cancellation, and fail-closed cleanup.
|
|
10
|
+
- Isolate ordered steps in fresh non-root OCI containers backed by a bounded attempt workspace.
|
|
11
|
+
- Ship static amd64 and arm64 musl workspace helpers with complete dependency notices.
|
|
12
|
+
- Publish a Deno JavaScript bundle and rolled-up declarations for npm consumers.
|
package/deno.json
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ship.zone/runner",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"exports": "./mod.ts",
|
|
5
|
+
"nodeModulesDir": "none",
|
|
6
|
+
"tasks": {
|
|
7
|
+
"dev": "deno run --allow-env --allow-net --allow-read --allow-write --allow-run mod.ts",
|
|
8
|
+
"bundle": "deno bundle --frozen --check --platform=deno --keep-names --external '@foss.global/ci-spec' --external '@foss.global/ci-spec/*' --external 'ajv/*' --declaration --outdir dist_npm mod.ts",
|
|
9
|
+
"test": "deno test --allow-env --allow-net --allow-read --allow-write --allow-run test/",
|
|
10
|
+
"check": "deno check mod.ts test/",
|
|
11
|
+
"fmt": "deno fmt",
|
|
12
|
+
"lint": "deno lint"
|
|
13
|
+
},
|
|
14
|
+
"lint": {
|
|
15
|
+
"rules": {
|
|
16
|
+
"tags": [
|
|
17
|
+
"recommended"
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"fmt": {
|
|
22
|
+
"useTabs": false,
|
|
23
|
+
"lineWidth": 100,
|
|
24
|
+
"indentWidth": 2,
|
|
25
|
+
"semiColons": true,
|
|
26
|
+
"singleQuote": true
|
|
27
|
+
},
|
|
28
|
+
"compilerOptions": {
|
|
29
|
+
"lib": [
|
|
30
|
+
"deno.window"
|
|
31
|
+
],
|
|
32
|
+
"strict": true
|
|
33
|
+
},
|
|
34
|
+
"imports": {
|
|
35
|
+
"@foss.global/ci-spec": "npm:@foss.global/ci-spec@0.1.0",
|
|
36
|
+
"@foss.global/ci-spec/runner-job.schema.json": "npm:@foss.global/ci-spec@0.1.0/runner-job.schema.json",
|
|
37
|
+
"@std/assert": "jsr:@std/assert@^1.0.14",
|
|
38
|
+
"@std/path": "jsr:@std/path@^1.1.2",
|
|
39
|
+
"ajv/dist/2020.js": "npm:ajv@8.20.0/dist/2020.js"
|
|
40
|
+
}
|
|
41
|
+
}
|