@effected/github-actions 0.5.1 → 0.6.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/ActionCache.js +1 -1
- package/ActionEnvironment.js +1 -1
- package/ActionInput.js +2 -2
- package/ActionOutputs.js +1 -1
- package/ActionState.js +1 -1
- package/Artifact.js +1 -1
- package/BlobEnvelope.js +1 -1
- package/BlobStore.js +1 -1
- package/BlobTransfer.js +1 -1
- package/CacheKey.js +1 -1
- package/CheckDocument.js +1 -1
- package/DetachedProcess.js +1 -1
- package/GitHubToken.js +1 -1
- package/ManagedDocument.js +1 -1
- package/OidcTokenIssuer.js +1 -1
- package/PackageManagerInstaller.js +1 -1
- package/ToolInstaller.js +1 -1
- package/package.json +9 -9
package/ActionCache.js
CHANGED
|
@@ -15,7 +15,7 @@ import { ChildProcess, ChildProcessSpawner } from "effect/unstable/process";
|
|
|
15
15
|
*
|
|
16
16
|
* @public
|
|
17
17
|
*/
|
|
18
|
-
var ActionCacheError = class extends Schema.
|
|
18
|
+
var ActionCacheError = class extends Schema.TaggedError()("ActionCacheError", {
|
|
19
19
|
/**
|
|
20
20
|
* `misconfigured` — the results backend is not reachable from here (see
|
|
21
21
|
* {@link ActionCache}). `unreachable` — it could not be contacted, or
|
package/ActionEnvironment.js
CHANGED
|
@@ -13,7 +13,7 @@ import { Context, Effect, FileSystem, Layer, Option, Schema } from "effect";
|
|
|
13
13
|
*
|
|
14
14
|
* @public
|
|
15
15
|
*/
|
|
16
|
-
var ActionEnvironmentError = class extends Schema.
|
|
16
|
+
var ActionEnvironmentError = class extends Schema.TaggedError()("ActionEnvironmentError", {
|
|
17
17
|
reason: Schema.Literals(["missing", "malformed"]),
|
|
18
18
|
/** The environment variable involved. */
|
|
19
19
|
name: Schema.String,
|
package/ActionInput.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Config, ConfigProvider, Context, Effect,
|
|
1
|
+
import { Config, ConfigProvider, Context, Effect, Schema, SchemaIssue } from "effect";
|
|
2
2
|
|
|
3
3
|
//#region src/ActionInput.ts
|
|
4
4
|
/**
|
|
@@ -29,7 +29,7 @@ const inputVariable = (name) => `INPUT_${name.replaceAll(" ", "_").toUpperCase()
|
|
|
29
29
|
* quietly become `false` and the action would perform the mutations the author
|
|
30
30
|
* meant to rehearse.
|
|
31
31
|
*/
|
|
32
|
-
const configError = (message, actual) => new Config.ConfigError(new Schema.SchemaError(new SchemaIssue.InvalidValue(
|
|
32
|
+
const configError = (message, actual) => new Config.ConfigError(new Schema.SchemaError(new SchemaIssue.InvalidValue({ message }, actual)));
|
|
33
33
|
/** YAML 1.2 core-schema booleans, which is what the runner documents. */
|
|
34
34
|
const TRUE = /* @__PURE__ */ new Set([
|
|
35
35
|
"true",
|
package/ActionOutputs.js
CHANGED
|
@@ -8,7 +8,7 @@ import { Console, Context, Effect, FileSystem, Layer, Schema } from "effect";
|
|
|
8
8
|
*
|
|
9
9
|
* @public
|
|
10
10
|
*/
|
|
11
|
-
var ActionOutputError = class extends Schema.
|
|
11
|
+
var ActionOutputError = class extends Schema.TaggedError()("ActionOutputError", {
|
|
12
12
|
/**
|
|
13
13
|
* `unavailable` — the runner file variable is not set, which usually means
|
|
14
14
|
* the code is running outside a GitHub runner. `writeFailed` — the file
|
package/ActionState.js
CHANGED
|
@@ -8,7 +8,7 @@ import { Context, Effect, FileSystem, Layer, Option, Schema } from "effect";
|
|
|
8
8
|
*
|
|
9
9
|
* @public
|
|
10
10
|
*/
|
|
11
|
-
var ActionStateError = class extends Schema.
|
|
11
|
+
var ActionStateError = class extends Schema.TaggedError()("ActionStateError", {
|
|
12
12
|
/**
|
|
13
13
|
* `missing` — no value was saved under this key in an earlier phase.
|
|
14
14
|
* `malformed` — a value is there but is not JSON, or does not satisfy the
|
package/Artifact.js
CHANGED
|
@@ -14,7 +14,7 @@ import { ChildProcess, ChildProcessSpawner } from "effect/unstable/process";
|
|
|
14
14
|
*
|
|
15
15
|
* @public
|
|
16
16
|
*/
|
|
17
|
-
var ArtifactError = class extends Schema.
|
|
17
|
+
var ArtifactError = class extends Schema.TaggedError()("ArtifactError", {
|
|
18
18
|
/**
|
|
19
19
|
* `misconfigured` — the results backend is not reachable from here (see
|
|
20
20
|
* {@link Artifact}). `unreachable` — it could not be contacted, or answered
|
package/BlobEnvelope.js
CHANGED
|
@@ -6,7 +6,7 @@ import { Result, Schema } from "effect";
|
|
|
6
6
|
*
|
|
7
7
|
* @public
|
|
8
8
|
*/
|
|
9
|
-
var BlobEnvelopeError = class extends Schema.
|
|
9
|
+
var BlobEnvelopeError = class extends Schema.TaggedError()("BlobEnvelopeError", {
|
|
10
10
|
/**
|
|
11
11
|
* `notAnEnvelope` — the magic prefix is absent, so these are raw bytes
|
|
12
12
|
* written before this format existed (or by something else entirely).
|
package/BlobStore.js
CHANGED
|
@@ -10,7 +10,7 @@ import { HttpClient, HttpClientRequest } from "effect/unstable/http";
|
|
|
10
10
|
*
|
|
11
11
|
* @public
|
|
12
12
|
*/
|
|
13
|
-
var BlobStoreError = class extends Schema.
|
|
13
|
+
var BlobStoreError = class extends Schema.TaggedError()("BlobStoreError", {
|
|
14
14
|
/**
|
|
15
15
|
* `unreachable` — the store could not be contacted. `refused` — it answered,
|
|
16
16
|
* unhappily; `status` says how. `misconfigured` — the layer was built with
|
package/BlobTransfer.js
CHANGED
|
@@ -6,7 +6,7 @@ import { Schema } from "effect";
|
|
|
6
6
|
*
|
|
7
7
|
* @public
|
|
8
8
|
*/
|
|
9
|
-
var BlobTransferError = class extends Schema.
|
|
9
|
+
var BlobTransferError = class extends Schema.TaggedError()("BlobTransferError", {
|
|
10
10
|
/** Which direction failed. */
|
|
11
11
|
reason: Schema.Literals(["uploadFailed", "downloadFailed"]),
|
|
12
12
|
/** The underlying failure, preserved structurally. */
|
package/CacheKey.js
CHANGED
|
@@ -8,7 +8,7 @@ import { GlobSet } from "@effected/glob";
|
|
|
8
8
|
*
|
|
9
9
|
* @public
|
|
10
10
|
*/
|
|
11
|
-
var CacheKeyError = class extends Schema.
|
|
11
|
+
var CacheKeyError = class extends Schema.TaggedError()("CacheKeyError", {
|
|
12
12
|
/**
|
|
13
13
|
* `readFailed` — a file or directory that was going to be hashed could not be
|
|
14
14
|
* read. `badPattern` — a glob pattern would not compile. Key *derivation*
|
package/CheckDocument.js
CHANGED
|
@@ -41,7 +41,7 @@ var CheckReport = class extends Schema.Class("CheckReport")({
|
|
|
41
41
|
*
|
|
42
42
|
* @public
|
|
43
43
|
*/
|
|
44
|
-
var CheckDocumentError = class extends Schema.
|
|
44
|
+
var CheckDocumentError = class extends Schema.TaggedError()("CheckDocumentError", {
|
|
45
45
|
/** Which half failed: regenerating the document, or writing it. */
|
|
46
46
|
kind: Schema.Literals(["render", "sink"]),
|
|
47
47
|
/** The underlying failure. */
|
package/DetachedProcess.js
CHANGED
|
@@ -9,7 +9,7 @@ import { closeSync, openSync } from "node:fs";
|
|
|
9
9
|
*
|
|
10
10
|
* @public
|
|
11
11
|
*/
|
|
12
|
-
var DetachedProcessError = class extends Schema.
|
|
12
|
+
var DetachedProcessError = class extends Schema.TaggedError()("DetachedProcessError", {
|
|
13
13
|
/**
|
|
14
14
|
* `logUnavailable` — the log file could not be opened, so there is nowhere
|
|
15
15
|
* for the child's output to go. `spawnFailed` — the child did not start.
|
package/GitHubToken.js
CHANGED
|
@@ -9,7 +9,7 @@ import { GitHubApp, GitHubClient, InstallationToken, TokenPermissions } from "@e
|
|
|
9
9
|
*
|
|
10
10
|
* @public
|
|
11
11
|
*/
|
|
12
|
-
var GitHubTokenError = class extends Schema.
|
|
12
|
+
var GitHubTokenError = class extends Schema.TaggedError()("GitHubTokenError", {
|
|
13
13
|
/**
|
|
14
14
|
* One reason, deliberately: everything else that can go wrong here already
|
|
15
15
|
* has an owner — persistence is an `ActionStateError`, minting is a
|
package/ManagedDocument.js
CHANGED
|
@@ -38,7 +38,7 @@ const REGION_DIALECT = SectionDialect.make({
|
|
|
38
38
|
*
|
|
39
39
|
* @public
|
|
40
40
|
*/
|
|
41
|
-
var ManagedDocumentError = class extends Schema.
|
|
41
|
+
var ManagedDocumentError = class extends Schema.TaggedError()("ManagedDocumentError", {
|
|
42
42
|
/** Which ambiguity or refusal was found. */
|
|
43
43
|
kind: Schema.Literals([
|
|
44
44
|
"unterminatedRegion",
|
package/OidcTokenIssuer.js
CHANGED
|
@@ -9,7 +9,7 @@ import * as HttpClientResponse from "effect/unstable/http/HttpClientResponse";
|
|
|
9
9
|
*
|
|
10
10
|
* @public
|
|
11
11
|
*/
|
|
12
|
-
var OidcTokenError = class extends Schema.
|
|
12
|
+
var OidcTokenError = class extends Schema.TaggedError()("OidcTokenError", {
|
|
13
13
|
/**
|
|
14
14
|
* `unavailable` — the runner did not publish the token-service variables,
|
|
15
15
|
* which almost always means the workflow is missing `permissions: id-token:
|
|
@@ -11,7 +11,7 @@ import { PackageManagerPinName } from "@effected/npm";
|
|
|
11
11
|
*
|
|
12
12
|
* @public
|
|
13
13
|
*/
|
|
14
|
-
var PackageManagerInstallerError = class extends Schema.
|
|
14
|
+
var PackageManagerInstallerError = class extends Schema.TaggedError()("PackageManagerInstallerError", {
|
|
15
15
|
/**
|
|
16
16
|
* `downloadFailed`, `extractFailed` and `cacheFailed` mirror the
|
|
17
17
|
* {@link ToolInstallerError} that caused them, preserved on `cause`
|
package/ToolInstaller.js
CHANGED
|
@@ -9,7 +9,7 @@ import { ChildProcess, ChildProcessSpawner } from "effect/unstable/process";
|
|
|
9
9
|
*
|
|
10
10
|
* @public
|
|
11
11
|
*/
|
|
12
|
-
var ToolInstallerError = class extends Schema.
|
|
12
|
+
var ToolInstallerError = class extends Schema.TaggedError()("ToolInstallerError", {
|
|
13
13
|
/**
|
|
14
14
|
* `downloadFailed` — the archive could not be fetched. `extractFailed` — the
|
|
15
15
|
* extraction tool refused the archive or is not installed. `cacheFailed` —
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effected/github-actions",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The GitHub Actions runtime: env, inputs, outputs, state, logging, cache, artifacts, blob storage, OIDC and the token bridge.",
|
|
6
6
|
"keywords": [
|
|
@@ -39,16 +39,16 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@azure/storage-blob": "^12.33.0",
|
|
42
|
-
"@effected/github": "^0.
|
|
43
|
-
"@effected/glob": "^0.
|
|
44
|
-
"@effected/markdown": "^0.
|
|
45
|
-
"@effected/npm": "^0.
|
|
46
|
-
"@effected/sbom": "^0.
|
|
47
|
-
"@effected/templates": "^0.
|
|
42
|
+
"@effected/github": "^0.3.0",
|
|
43
|
+
"@effected/glob": "^0.3.0",
|
|
44
|
+
"@effected/markdown": "^0.5.0",
|
|
45
|
+
"@effected/npm": "^0.9.0",
|
|
46
|
+
"@effected/sbom": "^0.3.0",
|
|
47
|
+
"@effected/templates": "^0.2.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@effect/platform-node": "4.0.0-beta.
|
|
51
|
-
"effect": "4.0.0-beta.
|
|
50
|
+
"@effect/platform-node": "4.0.0-beta.107",
|
|
51
|
+
"effect": "4.0.0-beta.107"
|
|
52
52
|
},
|
|
53
53
|
"engines": {
|
|
54
54
|
"node": ">=24.11.0"
|