@effected/github-actions 0.30.0 → 0.31.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 +2 -2
- package/ActionLogger.js +1 -1
- package/ActionState.js +1 -1
- package/ActionsRegistryCredential.js +1 -1
- package/Artifact.js +3 -3
- package/BlobStore.githubCache.js +3 -3
- package/BlobStore.js +1 -1
- package/CheckDocument.js +1 -1
- package/DetachedProcess.js +1 -1
- package/OidcTokenIssuer.js +1 -1
- package/PackageManagerInstaller.js +2 -2
- package/ToolInstaller.js +3 -3
- package/index.d.ts +1 -1
- package/index.js +10 -10
- package/package.json +14 -14
- package/tsdoc-metadata.json +1 -1
package/ActionCache.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ActionEnvironment } from "./ActionEnvironment.js";
|
|
2
|
-
import { unstubbed } from "./internal/unstubbed.js";
|
|
3
2
|
import { BlobTransferError } from "./BlobTransfer.js";
|
|
4
3
|
import { misconfiguredDetail, resultsBackend } from "./internal/actionsResults.js";
|
|
5
4
|
import { blobCause } from "./internal/blobCause.js";
|
|
6
|
-
import { twirpCall, twirpFailureFields } from "./internal/twirp.js";
|
|
7
5
|
import { CACHE_SERVICE, finalizeUpload, lookupDownload, reserveUpload } from "./internal/cacheService.js";
|
|
8
6
|
import { sha256Hex } from "./internal/digest.js";
|
|
9
7
|
import { isWindowsRunner } from "./internal/runner.js";
|
|
10
8
|
import { spawnOnce } from "./internal/spawn.js";
|
|
9
|
+
import { twirpCall, twirpFailureFields } from "./internal/twirp.js";
|
|
10
|
+
import { unstubbed } from "./internal/unstubbed.js";
|
|
11
11
|
import { Context, Effect, FileSystem, Layer, Option, Path, Schema } from "effect";
|
|
12
12
|
import { HttpClient } from "effect/http";
|
|
13
13
|
import { BlobClient, BlockBlobClient } from "@azure/storage-blob";
|
package/ActionLogger.js
CHANGED
|
@@ -110,7 +110,7 @@ const ActiveBuffer = Context.Reference("@effected/github-actions/ActiveBuffer",
|
|
|
110
110
|
*
|
|
111
111
|
* Keyed by `WorkflowCommand.groupDepthKey`, the kit-wide key for this count,
|
|
112
112
|
* rather than a key of this package's own: Effect looks a reference up by its
|
|
113
|
-
* key, so `@effected/cli`'s `Render.context`, which builds its own reference
|
|
113
|
+
* key, so `@effected/cli-kit`'s `Render.context`, which builds its own reference
|
|
114
114
|
* from the same key, sees the depth this member provides, and a document it
|
|
115
115
|
* renders inside a group opens no second one.
|
|
116
116
|
*
|
package/ActionState.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ActionEnvironment } from "./ActionEnvironment.js";
|
|
2
|
+
import { ActionOutputs } from "./ActionOutputs.js";
|
|
2
3
|
import { heredocBlock, isUsableName } from "./internal/runnerFile.js";
|
|
3
4
|
import { unstubbed } from "./internal/unstubbed.js";
|
|
4
|
-
import { ActionOutputs } from "./ActionOutputs.js";
|
|
5
5
|
import { Context, Effect, FileSystem, Layer, Option, Schema } from "effect";
|
|
6
6
|
|
|
7
7
|
// src/ActionState.ts
|
package/Artifact.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ActionEnvironment } from "./ActionEnvironment.js";
|
|
2
|
-
import { unstubbed } from "./internal/unstubbed.js";
|
|
3
2
|
import { BlobTransferError } from "./BlobTransfer.js";
|
|
4
3
|
import { misconfiguredDetail, resultsBackend } from "./internal/actionsResults.js";
|
|
4
|
+
import { unzipCommand, zipCommand, zipManifest } from "./internal/archiveCommands.js";
|
|
5
5
|
import { blobCause } from "./internal/blobCause.js";
|
|
6
|
-
import { CONFLICT, field, isOk, stringField, twirpCall, twirpFailureFields } from "./internal/twirp.js";
|
|
7
6
|
import { digestFileHex } from "./internal/digest.js";
|
|
8
7
|
import { isWindowsRunner } from "./internal/runner.js";
|
|
9
8
|
import { spawnOnce } from "./internal/spawn.js";
|
|
10
|
-
import {
|
|
9
|
+
import { CONFLICT, field, isOk, stringField, twirpCall, twirpFailureFields } from "./internal/twirp.js";
|
|
10
|
+
import { unstubbed } from "./internal/unstubbed.js";
|
|
11
11
|
import { Context, DateTime, Duration, Effect, FileSystem, Layer, Option, Path, Result, Schema } from "effect";
|
|
12
12
|
import { HttpClient } from "effect/http";
|
|
13
13
|
import { BlobClient, BlockBlobClient } from "@azure/storage-blob";
|
package/BlobStore.githubCache.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ActionEnvironment } from "./ActionEnvironment.js";
|
|
2
|
+
import { BlobEnvelope } from "./BlobEnvelope.js";
|
|
3
|
+
import { BlobStore, BlobStoreError } from "./BlobStore.js";
|
|
2
4
|
import { BlobTransferError } from "./BlobTransfer.js";
|
|
3
5
|
import { misconfiguredDetail, resultsBackend } from "./internal/actionsResults.js";
|
|
4
6
|
import { blobCause } from "./internal/blobCause.js";
|
|
5
|
-
import { twirpCall, twirpFailureFields } from "./internal/twirp.js";
|
|
6
7
|
import { CACHE_SERVICE, finalizeUpload, lookupDownload, reserveUpload } from "./internal/cacheService.js";
|
|
7
8
|
import { sha256Hex } from "./internal/digest.js";
|
|
8
|
-
import {
|
|
9
|
-
import { BlobStore, BlobStoreError } from "./BlobStore.js";
|
|
9
|
+
import { twirpCall, twirpFailureFields } from "./internal/twirp.js";
|
|
10
10
|
import { Effect, Layer, Option } from "effect";
|
|
11
11
|
import { HttpClient } from "effect/http";
|
|
12
12
|
import { BlobClient, BlockBlobClient } from "@azure/storage-blob";
|
package/BlobStore.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { BlobEnvelope } from "./BlobEnvelope.js";
|
|
1
2
|
import { unstubbed } from "./internal/unstubbed.js";
|
|
2
3
|
import { Secret } from "./Secret.js";
|
|
3
|
-
import { BlobEnvelope } from "./BlobEnvelope.js";
|
|
4
4
|
import { Context, DateTime, Effect, Layer, Option, Schema } from "effect";
|
|
5
5
|
import { HttpClient, HttpClientRequest } from "effect/http";
|
|
6
6
|
import { HttpRedaction, SigV4 } from "@effected/crypto";
|
package/CheckDocument.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { unstubbed } from "./internal/unstubbed.js";
|
|
2
1
|
import { CheckState } from "./CheckState.js";
|
|
2
|
+
import { unstubbed } from "./internal/unstubbed.js";
|
|
3
3
|
import { ManagedDocument } from "./ManagedDocument.js";
|
|
4
4
|
import { Clock, Context, Duration, Effect, Latch, Layer, Ref, Schema, Semaphore } from "effect";
|
|
5
5
|
|
package/DetachedProcess.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { unstubbed } from "./internal/unstubbed.js";
|
|
2
1
|
import { isErrno } from "./internal/fsProbe.js";
|
|
2
|
+
import { unstubbed } from "./internal/unstubbed.js";
|
|
3
3
|
import { Effect, Schedule, Schema } from "effect";
|
|
4
4
|
import { HttpClient } from "effect/http";
|
|
5
5
|
import { ChildProcessSpawner } from "effect/process";
|
package/OidcTokenIssuer.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ActionEnvironment } from "./ActionEnvironment.js";
|
|
2
|
-
import { unstubbed } from "./internal/unstubbed.js";
|
|
3
2
|
import { ActionOutputs } from "./ActionOutputs.js";
|
|
3
|
+
import { unstubbed } from "./internal/unstubbed.js";
|
|
4
4
|
import { Secret } from "./Secret.js";
|
|
5
5
|
import { Context, Effect, Layer, Redacted, Schema } from "effect";
|
|
6
6
|
import { HttpClient, HttpClientRequest } from "effect/http";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ActionEnvironment } from "./ActionEnvironment.js";
|
|
2
|
-
import { unstubbed } from "./internal/unstubbed.js";
|
|
3
2
|
import { digestFileHex } from "./internal/digest.js";
|
|
4
|
-
import { isWindowsRunner, runnerArch } from "./internal/runner.js";
|
|
5
3
|
import { typeAt } from "./internal/fsProbe.js";
|
|
6
4
|
import { PNPM_EXE_PREFIX, detectMusl, isNodeScript, pnpmExeTarget, strongestSri } from "./internal/pnpmExe.js";
|
|
5
|
+
import { isWindowsRunner, runnerArch } from "./internal/runner.js";
|
|
7
6
|
import { cmdShim, gitBashShim, posixShim } from "./internal/shim.js";
|
|
7
|
+
import { unstubbed } from "./internal/unstubbed.js";
|
|
8
8
|
import { ToolInstaller } from "./ToolInstaller.js";
|
|
9
9
|
import { Context, Effect, FileSystem, Layer, Option, Path, Schema } from "effect";
|
|
10
10
|
import { ChildProcess, ChildProcessSpawner } from "effect/process";
|
package/ToolInstaller.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ActionEnvironment } from "./ActionEnvironment.js";
|
|
2
|
-
import { unstubbed } from "./internal/unstubbed.js";
|
|
3
|
-
import { isWindowsRunner, runnerArch, toolCacheRoot } from "./internal/runner.js";
|
|
4
|
-
import { spawnOnce } from "./internal/spawn.js";
|
|
5
2
|
import { tarExtractCommand, unzipCommand } from "./internal/archiveCommands.js";
|
|
6
3
|
import { isErrno, typeAt } from "./internal/fsProbe.js";
|
|
4
|
+
import { isWindowsRunner, runnerArch, toolCacheRoot } from "./internal/runner.js";
|
|
5
|
+
import { spawnOnce } from "./internal/spawn.js";
|
|
6
|
+
import { unstubbed } from "./internal/unstubbed.js";
|
|
7
7
|
import { Context, Effect, FileSystem, Layer, Option, Path, Schedule, Schema, Stream } from "effect";
|
|
8
8
|
import { HttpClient } from "effect/http";
|
|
9
9
|
import { ChildProcessSpawner } from "effect/process";
|
package/index.d.ts
CHANGED
|
@@ -326,7 +326,7 @@ interface ActionLoggerShape {
|
|
|
326
326
|
* that outlives the group still writes headers rather than a group.
|
|
327
327
|
* 3. **Only a writer that reads the shared depth is counted.** The depth
|
|
328
328
|
* lives in the fiber-local keyed by `WorkflowCommand.groupDepthKey`
|
|
329
|
-
* (from `@effected/github-commands`), which `@effected/cli` reads too:
|
|
329
|
+
* (from `@effected/github-commands`), which `@effected/cli-kit` reads too:
|
|
330
330
|
* `Render.context` built inside a group carries it as
|
|
331
331
|
* `RenderContext.groupDepth`, so `Doc.print` and `Render.githubLog`
|
|
332
332
|
* render a top-level collapsible as plain text there rather than as a
|
package/index.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
+
import { Action, ActionRuntime, describeCause } from "./Action.js";
|
|
2
|
+
import { ActionCache, ActionCacheError } from "./ActionCache.js";
|
|
1
3
|
import { ActionEnvironment, ActionEnvironmentError, GitHubContext, RunnerContext } from "./ActionEnvironment.js";
|
|
2
4
|
import { ActionInput } from "./ActionInput.js";
|
|
3
5
|
import { ActionLogger } from "./ActionLogger.js";
|
|
6
|
+
import { ActionManifest, ActionManifestBranding, ActionManifestCompositeRuns, ActionManifestDecodeError, ActionManifestDiff, ActionManifestDockerRuns, ActionManifestInput, ActionManifestNodeRuns, ActionManifestOutput, ActionManifestReadError } from "./ActionManifest.js";
|
|
4
7
|
import { ActionOutputs, DetachedOutputError, InvalidOutputNameError, OutputEncodeError, RecordedOutput, RunnerFileUnavailableError, RunnerFileWriteError } from "./ActionOutputs.js";
|
|
5
8
|
import { ActionState, ActionStateError } from "./ActionState.js";
|
|
6
|
-
import { Action, ActionRuntime, describeCause } from "./Action.js";
|
|
7
|
-
import { BlobTransferError } from "./BlobTransfer.js";
|
|
8
|
-
import { ActionCache, ActionCacheError } from "./ActionCache.js";
|
|
9
|
-
import { ActionManifest, ActionManifestBranding, ActionManifestCompositeRuns, ActionManifestDecodeError, ActionManifestDiff, ActionManifestDockerRuns, ActionManifestInput, ActionManifestNodeRuns, ActionManifestOutput, ActionManifestReadError } from "./ActionManifest.js";
|
|
10
|
-
import { Secret } from "./Secret.js";
|
|
11
|
-
import { OidcTokenError, OidcTokenIssuer } from "./OidcTokenIssuer.js";
|
|
12
9
|
import { ActionsIdentityToken } from "./ActionsIdentityToken.js";
|
|
13
10
|
import { ActionsProvenance } from "./ActionsProvenance.js";
|
|
14
11
|
import { ActionsRegistryCredential } from "./ActionsRegistryCredential.js";
|
|
15
12
|
import { Artifact, ArtifactError } from "./Artifact.js";
|
|
16
13
|
import { BlobEnvelope, BlobMetadataDecodeError, BlobMetadataEncodeError, NotABlobEnvelopeError, TruncatedBlobEnvelopeError, UnsupportedBlobEnvelopeVersionError } from "./BlobEnvelope.js";
|
|
17
|
-
import { BlobStore, BlobStoreError } from "./BlobStore.js";
|
|
18
14
|
import { GitHubCacheBlobStore } from "./BlobStore.githubCache.js";
|
|
15
|
+
import { BlobStore, BlobStoreError } from "./BlobStore.js";
|
|
16
|
+
import { BlobTransferError } from "./BlobTransfer.js";
|
|
19
17
|
import { CacheKey, CacheKeyBadPatternError, CacheKeyReadError } from "./CacheKey.js";
|
|
20
|
-
import { CheckState, projectCheckState } from "./CheckState.js";
|
|
21
|
-
import { ManagedDocument, ManagedDocumentError } from "./ManagedDocument.js";
|
|
22
18
|
import { CheckDocument, CheckDocumentError, CheckDocumentStamp, CheckReport } from "./CheckDocument.js";
|
|
19
|
+
import { CheckState, projectCheckState } from "./CheckState.js";
|
|
23
20
|
import { ChildEnv } from "./ChildEnv.js";
|
|
24
21
|
import { DetachedLogUnavailableError, DetachedNotReadyError, DetachedProcess, DetachedSignalFailedError, DetachedSpawnFailedError, InvalidPidError, ProcessId } from "./DetachedProcess.js";
|
|
25
22
|
import { DryRun } from "./DryRun.js";
|
|
26
23
|
import { GitHubMarkdown } from "./GitHubMarkdown.js";
|
|
27
24
|
import { GitHubToken, GitHubTokenError } from "./GitHubToken.js";
|
|
28
|
-
import {
|
|
25
|
+
import { ManagedDocument, ManagedDocumentError } from "./ManagedDocument.js";
|
|
26
|
+
import { OidcTokenError, OidcTokenIssuer } from "./OidcTokenIssuer.js";
|
|
29
27
|
import { AmbientPackageManager, CachedPackageManager, InstalledPackageManager, PackageManagerInstaller, PackageManagerInstallerError } from "./PackageManagerInstaller.js";
|
|
28
|
+
import { Secret } from "./Secret.js";
|
|
29
|
+
import { ToolInstaller, ToolInstallerError } from "./ToolInstaller.js";
|
|
30
30
|
import { WorkflowCommand } from "@effected/github-commands";
|
|
31
31
|
|
|
32
32
|
export { Action, ActionCache, ActionCacheError, ActionEnvironment, ActionEnvironmentError, ActionInput, ActionLogger, ActionManifest, ActionManifestBranding, ActionManifestCompositeRuns, ActionManifestDecodeError, ActionManifestDiff, ActionManifestDockerRuns, ActionManifestInput, ActionManifestNodeRuns, ActionManifestOutput, ActionManifestReadError, ActionOutputs, ActionRuntime, ActionState, ActionStateError, ActionsIdentityToken, ActionsProvenance, ActionsRegistryCredential, AmbientPackageManager, Artifact, ArtifactError, BlobEnvelope, BlobMetadataDecodeError, BlobMetadataEncodeError, BlobStore, BlobStoreError, BlobTransferError, CacheKey, CacheKeyBadPatternError, CacheKeyReadError, CachedPackageManager, CheckDocument, CheckDocumentError, CheckDocumentStamp, CheckReport, CheckState, ChildEnv, DetachedLogUnavailableError, DetachedNotReadyError, DetachedOutputError, DetachedProcess, DetachedSignalFailedError, DetachedSpawnFailedError, DryRun, GitHubCacheBlobStore, GitHubContext, GitHubMarkdown, GitHubToken, GitHubTokenError, InstalledPackageManager, InvalidOutputNameError, InvalidPidError, ManagedDocument, ManagedDocumentError, NotABlobEnvelopeError, OidcTokenError, OidcTokenIssuer, OutputEncodeError, PackageManagerInstaller, PackageManagerInstallerError, ProcessId, RecordedOutput, RunnerContext, RunnerFileUnavailableError, RunnerFileWriteError, Secret, ToolInstaller, ToolInstallerError, TruncatedBlobEnvelopeError, UnsupportedBlobEnvelopeVersionError, WorkflowCommand, describeCause, projectCheckState };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effected/github-actions",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.31.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,19 +39,19 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@azure/storage-blob": "^12.33.0",
|
|
42
|
-
"@effected/crypto": "^0.
|
|
43
|
-
"@effected/github": "^0.
|
|
44
|
-
"@effected/github-commands": "^0.
|
|
45
|
-
"@effected/glob": "^0.
|
|
46
|
-
"@effected/jwt": "^0.
|
|
47
|
-
"@effected/markdown": "^0.
|
|
48
|
-
"@effected/npm": "^0.
|
|
49
|
-
"@effected/oidc": "^0.
|
|
50
|
-
"@effected/sbom": "^0.
|
|
51
|
-
"@effected/semver": "^0.
|
|
52
|
-
"@effected/templates": "^0.
|
|
53
|
-
"@effected/walker": "^0.
|
|
54
|
-
"@effected/yaml": "^0.
|
|
42
|
+
"@effected/crypto": "^0.5.0",
|
|
43
|
+
"@effected/github": "^0.28.0",
|
|
44
|
+
"@effected/github-commands": "^0.9.0",
|
|
45
|
+
"@effected/glob": "^0.18.0",
|
|
46
|
+
"@effected/jwt": "^0.9.0",
|
|
47
|
+
"@effected/markdown": "^0.26.0",
|
|
48
|
+
"@effected/npm": "^0.30.0",
|
|
49
|
+
"@effected/oidc": "^0.4.0",
|
|
50
|
+
"@effected/sbom": "^0.20.0",
|
|
51
|
+
"@effected/semver": "^0.21.0",
|
|
52
|
+
"@effected/templates": "^0.17.0",
|
|
53
|
+
"@effected/walker": "^0.25.0",
|
|
54
|
+
"@effected/yaml": "^0.28.0"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"@effect/platform-node": "~4.1.0",
|