@ship.zone/runner 0.2.0 → 0.2.2
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 +22 -0
- package/deno.json +1 -1
- package/dist_npm/mod.d.ts +33 -6
- package/dist_npm/mod.js +452 -33
- package/dist_rust/runnerworkspace_linux_amd64_musl +0 -0
- package/dist_rust/runnerworkspace_linux_arm64_musl +0 -0
- package/package.json +1 -1
- package/readme.md +23 -1
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/oci-executor.ts +669 -31
package/changelog.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2026-08-29 - 0.2.2
|
|
4
|
+
|
|
5
|
+
### Fixes
|
|
6
|
+
|
|
7
|
+
- materialize packaged workspace helpers as private executable state files (oci-executor)
|
|
8
|
+
- Read exact bounded source bytes through a pinned descriptor and publish mode-0755
|
|
9
|
+
digest-addressed helper copies below a private state directory without replacing a concurrent
|
|
10
|
+
winner or changing package-managed source permissions.
|
|
11
|
+
- Serialize materialization, revalidate reused copies as single-link files without mutating them,
|
|
12
|
+
recover the exact validated two-link interruption window, fail closed on unsafe state paths, and
|
|
13
|
+
bound retained helpers and incomplete temporary files.
|
|
14
|
+
- Scope host and OCI runtime verification probes to a private persisted state-owner marker so
|
|
15
|
+
interrupted verification can be cleaned without touching unowned or another runner's resources,
|
|
16
|
+
and sync the helper-directory entry before relying on that persisted owner.
|
|
17
|
+
|
|
18
|
+
## 2026-07-31 - 0.2.1
|
|
19
|
+
|
|
20
|
+
### Fixes
|
|
21
|
+
|
|
22
|
+
- publish Node-compatible declaration types for OCI dependency injection (oci-executor)
|
|
23
|
+
- Replace Deno-specific dependency injection types with runtime-neutral interfaces for temporary directories, removal options, directory entries, and file metadata.
|
|
24
|
+
|
|
3
25
|
## 2026-07-31 - 0.2.0
|
|
4
26
|
|
|
5
27
|
### Features
|
package/deno.json
CHANGED
package/dist_npm/mod.d.ts
CHANGED
|
@@ -522,21 +522,39 @@ export interface IOciRuntimeCommandResult { success: boolean;
|
|
|
522
522
|
stderr: Uint8Array;
|
|
523
523
|
}
|
|
524
524
|
export type TOciRuntimeCommandRunner = (request: IOciRuntimeCommandRequest) => Promise<IOciRuntimeCommandResult>;
|
|
525
|
+
export interface IRuntimeMakeTempOptions { dir?: string;
|
|
526
|
+
prefix?: string;
|
|
527
|
+
suffix?: string;
|
|
528
|
+
}
|
|
529
|
+
export interface IRuntimeRemoveOptions { recursive?: boolean;
|
|
530
|
+
}
|
|
531
|
+
export interface IRuntimeDirectoryEntry { name: string;
|
|
532
|
+
isFile: boolean;
|
|
533
|
+
isDirectory: boolean;
|
|
534
|
+
isSymlink: boolean;
|
|
535
|
+
}
|
|
536
|
+
export interface IRuntimeFileInfo { isDirectory: boolean;
|
|
537
|
+
isSymlink: boolean;
|
|
538
|
+
uid: number | null;
|
|
539
|
+
mtime: Date | null;
|
|
540
|
+
dev: number | null;
|
|
541
|
+
ino: number | null;
|
|
542
|
+
}
|
|
525
543
|
export interface IOciExecutorDependencies { commandRunner?: TOciRuntimeCommandRunner;
|
|
526
544
|
runtimeEnvironment?: Record<string, string>;
|
|
527
545
|
resolveHelperPath?: (target: TOciHelperTarget) => Promise<string>;
|
|
528
546
|
probeTmpfs?: (helperPath: string) => Promise<number>;
|
|
529
547
|
randomId?: () => string;
|
|
530
548
|
now?: () => number;
|
|
531
|
-
makeTempDir?: (options:
|
|
549
|
+
makeTempDir?: (options: IRuntimeMakeTempOptions) => Promise<string>;
|
|
532
550
|
chmod?: (path: string, mode: number) => Promise<void>;
|
|
533
|
-
remove?: (path: string, options?:
|
|
551
|
+
remove?: (path: string, options?: IRuntimeRemoveOptions) => Promise<void>;
|
|
534
552
|
}
|
|
535
553
|
export interface IHostTmpfsProbeScavengerDependencies { getUid?: () => number | undefined;
|
|
536
554
|
now?: () => number;
|
|
537
|
-
readDir?: (path: string) => AsyncIterable<
|
|
538
|
-
lstat?: (path: string) => Promise<
|
|
539
|
-
remove?: (path: string, options?:
|
|
555
|
+
readDir?: (path: string) => AsyncIterable<IRuntimeDirectoryEntry>;
|
|
556
|
+
lstat?: (path: string) => Promise<IRuntimeFileInfo>;
|
|
557
|
+
remove?: (path: string, options?: IRuntimeRemoveOptions) => Promise<void>;
|
|
540
558
|
}
|
|
541
559
|
export interface IWorkspaceVolumeLimits { blockSize: number;
|
|
542
560
|
logicalBytes: number;
|
|
@@ -566,7 +584,7 @@ export interface IOciHelperCommandInput { runnerId: string;
|
|
|
566
584
|
sourcePath?: string;
|
|
567
585
|
destinationPath?: string;
|
|
568
586
|
}
|
|
569
|
-
export declare const scavengeHostTmpfsProbes: (directory?: string, dependencies?: IHostTmpfsProbeScavengerDependencies) => Promise<void>;
|
|
587
|
+
export declare const scavengeHostTmpfsProbes: (directory?: string, dependencies?: IHostTmpfsProbeScavengerDependencies, runtimeProbeOwnerId?: string) => Promise<void>;
|
|
570
588
|
export declare const calculateWorkspaceVolumeLimits: (logicalBytes: number, maximumEntries: number, blockSize: number) => IWorkspaceVolumeLimits;
|
|
571
589
|
export declare const buildOciRunCommand: (config: IRunnerConfig, input: IOciStepCommandInput) => IOciRunCommand;
|
|
572
590
|
export declare const buildOciHelperCreateCommand: (config: IRunnerConfig, input: IOciHelperCommandInput) => string[];
|
|
@@ -590,6 +608,15 @@ export declare class OciExecutor implements IJobExecutor { private readonly conf
|
|
|
590
608
|
private requireRuntimeFacts;
|
|
591
609
|
private validateLeaseIdentity;
|
|
592
610
|
private resolvePackagedHelper;
|
|
611
|
+
private materializeWorkspaceHelper;
|
|
612
|
+
private ensureWorkspaceHelperDirectory;
|
|
613
|
+
private ensureRuntimeProbeOwner;
|
|
614
|
+
private validateRuntimeProbeOwnerMarker;
|
|
615
|
+
private withWorkspaceHelperLock;
|
|
616
|
+
private scavengeWorkspaceHelpers;
|
|
617
|
+
private recoverInterruptedWorkspaceHelperPublication;
|
|
618
|
+
private validateMaterializedWorkspaceHelper;
|
|
619
|
+
private syncDirectory;
|
|
593
620
|
private probeHostTmpfs;
|
|
594
621
|
private readFilesystemProbe;
|
|
595
622
|
private reconcileRuntimeProbeVolumes;
|