@ship.zone/runner 0.2.1 → 0.2.3

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 CHANGED
@@ -1,5 +1,29 @@
1
1
  # Changelog
2
2
 
3
+ ## 2026-08-30 - 0.2.3
4
+
5
+ ### Fixes
6
+
7
+ - require allow-all for Deno runner invocations (permissions)
8
+ - Switch CLI, shebang, dev task, and README examples to use Deno --allow-all
9
+ - Add build-time verification that the generated npm entrypoint preserves the expected permission shebang
10
+ - Include scripts in deno check coverage
11
+
12
+ ## 2026-08-29 - 0.2.2
13
+
14
+ ### Fixes
15
+
16
+ - materialize packaged workspace helpers as private executable state files (oci-executor)
17
+ - Read exact bounded source bytes through a pinned descriptor and publish mode-0755
18
+ digest-addressed helper copies below a private state directory without replacing a concurrent
19
+ winner or changing package-managed source permissions.
20
+ - Serialize materialization, revalidate reused copies as single-link files without mutating them,
21
+ recover the exact validated two-link interruption window, fail closed on unsafe state paths, and
22
+ bound retained helpers and incomplete temporary files.
23
+ - Scope host and OCI runtime verification probes to a private persisted state-owner marker so
24
+ interrupted verification can be cleaned without touching unowned or another runner's resources,
25
+ and sync the helper-directory entry before relying on that persisted owner.
26
+
3
27
  ## 2026-07-31 - 0.2.1
4
28
 
5
29
  ### Fixes
package/deno.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@ship.zone/runner",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "exports": "./mod.ts",
5
5
  "nodeModulesDir": "none",
6
6
  "tasks": {
7
- "dev": "deno run --allow-env --allow-net --allow-read --allow-write --allow-run mod.ts",
7
+ "dev": "deno run --allow-all mod.ts",
8
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
9
  "test": "deno test --allow-env --allow-net --allow-read --allow-write --allow-run test/",
10
- "check": "deno check mod.ts test/",
10
+ "check": "deno check mod.ts test/ scripts/",
11
11
  "fmt": "deno fmt",
12
12
  "lint": "deno lint"
13
13
  },
package/dist_npm/mod.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env -S deno run --allow-env --allow-net --allow-read --allow-write --allow-run
1
+ #!/usr/bin/env -S deno run --allow-all
2
2
  export type TRunnerFetch = (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
3
3
  export interface IRunnerApiClientOptions { controlPlaneUrl: string;
4
4
  allowInsecureLoopback: boolean;
@@ -584,7 +584,7 @@ export interface IOciHelperCommandInput { runnerId: string;
584
584
  sourcePath?: string;
585
585
  destinationPath?: string;
586
586
  }
587
- export declare const scavengeHostTmpfsProbes: (directory?: string, dependencies?: IHostTmpfsProbeScavengerDependencies) => Promise<void>;
587
+ export declare const scavengeHostTmpfsProbes: (directory?: string, dependencies?: IHostTmpfsProbeScavengerDependencies, runtimeProbeOwnerId?: string) => Promise<void>;
588
588
  export declare const calculateWorkspaceVolumeLimits: (logicalBytes: number, maximumEntries: number, blockSize: number) => IWorkspaceVolumeLimits;
589
589
  export declare const buildOciRunCommand: (config: IRunnerConfig, input: IOciStepCommandInput) => IOciRunCommand;
590
590
  export declare const buildOciHelperCreateCommand: (config: IRunnerConfig, input: IOciHelperCommandInput) => string[];
@@ -608,6 +608,15 @@ export declare class OciExecutor implements IJobExecutor { private readonly conf
608
608
  private requireRuntimeFacts;
609
609
  private validateLeaseIdentity;
610
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;
611
620
  private probeHostTmpfs;
612
621
  private readFilesystemProbe;
613
622
  private reconcileRuntimeProbeVolumes;