@async/pipeline 0.6.2 → 0.7.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/API_SURFACE.md +4 -1
- package/api-contract.json +29 -0
- package/dist/internal/core/cache.d.ts +47 -1
- package/dist/internal/core/cache.d.ts.map +1 -1
- package/dist/internal/core/cache.js +39 -1
- package/dist/internal/core/cache.js.map +1 -1
- package/dist/internal/node/redis-cache.d.ts +3 -0
- package/dist/internal/node/redis-cache.d.ts.map +1 -0
- package/dist/internal/node/redis-cache.js +533 -0
- package/dist/internal/node/redis-cache.js.map +1 -0
- package/dist/internal/node/runner.d.ts.map +1 -1
- package/dist/internal/node/runner.js +59 -49
- package/dist/internal/node/runner.js.map +1 -1
- package/dist/internal/node/store.d.ts +20 -6
- package/dist/internal/node/store.d.ts.map +1 -1
- package/dist/internal/node/store.js +344 -52
- package/dist/internal/node/store.js.map +1 -1
- package/package.json +1 -1
package/API_SURFACE.md
CHANGED
|
@@ -83,7 +83,10 @@ Contract: `@async/pipeline.runtime`
|
|
|
83
83
|
|
|
84
84
|
| Feature | Title | Release | Stability | Lifecycle | Replacement | Docs |
|
|
85
85
|
| --- | --- | --- | --- | --- | --- | --- |
|
|
86
|
+
| `runtime.cache.adapter` | Custom cache store adapter execution | beta | preview | active | | [docs](https://github.com/async/pipeline/blob/main/docs/api.md#definecache) |
|
|
86
87
|
| `runtime.cache.file` | File cache execution and output restoration | public | stable | active | | [docs](https://github.com/async/pipeline/blob/main/docs/api.md#definecache) |
|
|
88
|
+
| `runtime.cache.lifecycle` | Cache store lifecycle hooks | beta | preview | active | | [docs](https://github.com/async/pipeline/blob/main/docs/api.md#definecache) |
|
|
89
|
+
| `runtime.cache.redis` | Redis cache execution | beta | preview | active | | [docs](https://github.com/async/pipeline/blob/main/docs/api.md#definecache) |
|
|
87
90
|
|
|
88
91
|
### Diagnostics
|
|
89
92
|
|
|
@@ -110,7 +113,7 @@ Contract: `@async/pipeline.runtime`
|
|
|
110
113
|
| --- | --- | --- |
|
|
111
114
|
| `@async/pipeline.cli` | `sha256:b2c8e70d98df0154ebaf48b36dfae473f9b06887c5ad2ddfcc8d0f35c071ebf7` | `cli.github.check`, `cli.github.generate`, `cli.mcp`, `cli.publish.github`, `cli.publish.npm`, `cli.release.doctor`, `cli.run`, `cli.run-task`, `cli.sync.check`, `cli.sync.generate` |
|
|
112
115
|
| `@async/pipeline.declaration` | `sha256:470a50761f909c6c36f133dd906287a656b646742f59fd0534fd75f148563071` | `agent.stdoutTo`, `agent.step`, `config.definePipeline`, `config.env`, `config.github.pages`, `config.job`, `config.source`, `config.sync.github`, `config.sync.tasks`, `config.task`, `config.trigger.github`, `config.trigger.manual`, `step.shell` |
|
|
113
|
-
| `@async/pipeline.runtime` | `sha256:
|
|
116
|
+
| `@async/pipeline.runtime` | `sha256:71c3e018e8def16f9fd73fe9551169dff6672b21a082fea776a7d101a2932a30` | `runtime.cache.adapter`, `runtime.cache.file`, `runtime.cache.redis`, `runtime.context-packs`, `runtime.execution-records`, `runtime.run-lock`, `runtime.sandbox.container` |
|
|
114
117
|
|
|
115
118
|
## Required Surfaces
|
|
116
119
|
|
package/api-contract.json
CHANGED
|
@@ -255,6 +255,33 @@
|
|
|
255
255
|
"group": "cache",
|
|
256
256
|
"docsUrl": "https://github.com/async/pipeline/blob/main/docs/api.md#definecache"
|
|
257
257
|
},
|
|
258
|
+
{
|
|
259
|
+
"id": "runtime.cache.adapter",
|
|
260
|
+
"title": "Custom cache store adapter execution",
|
|
261
|
+
"releaseTag": "beta",
|
|
262
|
+
"stability": "preview",
|
|
263
|
+
"lifecycle": "active",
|
|
264
|
+
"group": "cache",
|
|
265
|
+
"docsUrl": "https://github.com/async/pipeline/blob/main/docs/api.md#definecache"
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"id": "runtime.cache.lifecycle",
|
|
269
|
+
"title": "Cache store lifecycle hooks",
|
|
270
|
+
"releaseTag": "beta",
|
|
271
|
+
"stability": "preview",
|
|
272
|
+
"lifecycle": "active",
|
|
273
|
+
"group": "cache",
|
|
274
|
+
"docsUrl": "https://github.com/async/pipeline/blob/main/docs/api.md#definecache"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"id": "runtime.cache.redis",
|
|
278
|
+
"title": "Redis cache execution",
|
|
279
|
+
"releaseTag": "beta",
|
|
280
|
+
"stability": "preview",
|
|
281
|
+
"lifecycle": "active",
|
|
282
|
+
"group": "cache",
|
|
283
|
+
"docsUrl": "https://github.com/async/pipeline/blob/main/docs/api.md#definecache"
|
|
284
|
+
},
|
|
258
285
|
{
|
|
259
286
|
"id": "runtime.context-packs",
|
|
260
287
|
"title": "Failure context packs",
|
|
@@ -334,7 +361,9 @@
|
|
|
334
361
|
"format": "api-contract.surface.v1",
|
|
335
362
|
"contractId": "@async/pipeline.runtime",
|
|
336
363
|
"features": [
|
|
364
|
+
"runtime.cache.adapter",
|
|
337
365
|
"runtime.cache.file",
|
|
366
|
+
"runtime.cache.redis",
|
|
338
367
|
"runtime.context-packs",
|
|
339
368
|
"runtime.execution-records",
|
|
340
369
|
"runtime.run-lock",
|
|
@@ -1,9 +1,53 @@
|
|
|
1
1
|
export type CachePolicy = "local" | "session";
|
|
2
2
|
export type CacheRef = `${string}:${CachePolicy}` | string;
|
|
3
|
+
export type CacheBlob = Uint8Array | string | AsyncIterable<Uint8Array>;
|
|
4
|
+
export interface CacheStoreContext {
|
|
5
|
+
rootDir: string;
|
|
6
|
+
asyncDir: string;
|
|
7
|
+
storeName: string;
|
|
8
|
+
policy: CachePolicy;
|
|
9
|
+
runId: string;
|
|
10
|
+
taskId: string;
|
|
11
|
+
signal?: AbortSignal;
|
|
12
|
+
}
|
|
13
|
+
export interface CacheStoreEntry {
|
|
14
|
+
key: string;
|
|
15
|
+
sizeBytes?: number;
|
|
16
|
+
createdAt?: string;
|
|
17
|
+
lastUsedAt?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface CachePruneOptions {
|
|
20
|
+
prefix?: string;
|
|
21
|
+
maxAgeMs?: number;
|
|
22
|
+
maxSizeBytes?: number;
|
|
23
|
+
}
|
|
24
|
+
export interface CachePruneResult {
|
|
25
|
+
removed: number;
|
|
26
|
+
bytesRemoved?: number;
|
|
27
|
+
}
|
|
28
|
+
export interface CacheStoreAdapter {
|
|
29
|
+
readonly name?: string;
|
|
30
|
+
get(key: string, context: CacheStoreContext): Promise<CacheBlob | null>;
|
|
31
|
+
put(key: string, value: CacheBlob, context: CacheStoreContext): Promise<void>;
|
|
32
|
+
touch?(key: string, context: CacheStoreContext): Promise<void>;
|
|
33
|
+
delete?(key: string, context: CacheStoreContext): Promise<void>;
|
|
34
|
+
list?(prefix: string, context: CacheStoreContext): AsyncIterable<CacheStoreEntry>;
|
|
35
|
+
prune?(options: CachePruneOptions, context: CacheStoreContext): Promise<CachePruneResult>;
|
|
36
|
+
}
|
|
37
|
+
export type CacheStoreErrorCode = "ASYNC_PIPELINE_CACHE_UNAVAILABLE" | "ASYNC_PIPELINE_CACHE_CORRUPT" | "ASYNC_PIPELINE_CACHE_UNSUPPORTED" | "ASYNC_PIPELINE_CACHE_PERMISSION";
|
|
38
|
+
export declare class CacheStoreError extends Error {
|
|
39
|
+
code: CacheStoreErrorCode;
|
|
40
|
+
retryable?: boolean;
|
|
41
|
+
constructor(code: CacheStoreErrorCode, message: string, options?: {
|
|
42
|
+
retryable?: boolean;
|
|
43
|
+
cause?: unknown;
|
|
44
|
+
});
|
|
45
|
+
}
|
|
3
46
|
export interface CacheStoreDefinition {
|
|
4
47
|
kind: "cache-store";
|
|
5
48
|
type: "memory" | "file" | "custom";
|
|
6
49
|
root?: string;
|
|
50
|
+
adapter?: CacheStoreAdapter;
|
|
7
51
|
config?: Record<string, unknown>;
|
|
8
52
|
}
|
|
9
53
|
export interface CacheUseOptions {
|
|
@@ -34,7 +78,9 @@ export declare function memoryCache(): CacheStoreDefinition;
|
|
|
34
78
|
export declare function fileCache(options?: {
|
|
35
79
|
root?: string;
|
|
36
80
|
}): CacheStoreDefinition;
|
|
37
|
-
export declare function customCache(config?: Record<string, unknown>
|
|
81
|
+
export declare function customCache(config?: Record<string, unknown> & {
|
|
82
|
+
adapter?: CacheStoreAdapter;
|
|
83
|
+
}): CacheStoreDefinition;
|
|
38
84
|
export declare function redisCache(config?: Record<string, unknown>): CacheStoreDefinition;
|
|
39
85
|
export declare function defineCache(input?: CacheRegistryInput | Record<string, CacheStoreDefinition>): CacheRegistryDefinition;
|
|
40
86
|
export declare function defaultPipelineCache(): CacheRegistryDefinition;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../src/cache.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,SAAS,CAAC;AAC9C,MAAM,MAAM,QAAQ,GAAG,GAAG,MAAM,IAAI,WAAW,EAAE,GAAG,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../src/cache.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,SAAS,CAAC;AAC9C,MAAM,MAAM,QAAQ,GAAG,GAAG,MAAM,IAAI,WAAW,EAAE,GAAG,MAAM,CAAC;AAC3D,MAAM,MAAM,SAAS,GAAG,UAAU,GAAG,MAAM,GAAG,aAAa,CAAC,UAAU,CAAC,CAAC;AAExE,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,WAAW,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,M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AAI,CAAC,EAAE,MAAM,CAAA;CAAO,GAAG,oBAAoB,CAE/E;AAED,wBAAgB,WAAW,CAAC,MAAM,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,iBAAiB,CAAA;CAAO,GAAG,oBAAoB,CAWxH;AAED,wBAAgB,UAAU,CAAC,MAAM,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,GAAG,oBAAoB,CAErF;AAED,wBAAgB,WAAW,CAAC,KAAK,GAAE,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAM,GAAG,uBAAuB,CAQ1H;AAED,wBAAgB,oBAAoB,IAAI,uBAAuB,CAK9D;AAED,wBAAgB,mBAAmB,IAAI,uBAAuB,CAK7D;AAED,eAAO,MAAM,KAAK,yBAAyB,CAAC;AAE5C,wBAAgB,aAAa,CAAC,GAAG,EAAE,QAAQ,GAAG,cAAc,CAY3D;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,cAAc,CAIxE;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,uBAAuB,EAAE,GAAG,EAAE,cAAc,GAAG,IAAI,CAQ7F;AAED,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,uBAAuB,GAAG,uBAAuB,CAMtG;AAsBD,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW,CAErE"}
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import { brandDeclaration, hasDeclarationKind } from "./declaration.js";
|
|
2
2
|
import { pipelineError } from "./errors.js";
|
|
3
|
+
export class CacheStoreError extends Error {
|
|
4
|
+
code;
|
|
5
|
+
retryable;
|
|
6
|
+
constructor(code, message, options = {}) {
|
|
7
|
+
super(message, { cause: options.cause });
|
|
8
|
+
this.name = "CacheStoreError";
|
|
9
|
+
this.code = code;
|
|
10
|
+
this.retryable = options.retryable;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
3
13
|
const knownPolicies = new Set(["local", "session"]);
|
|
4
14
|
export function memoryCache() {
|
|
5
15
|
return brandDeclaration({ kind: "cache-store", type: "memory" }, "cache.store.memory");
|
|
@@ -8,7 +18,16 @@ export function fileCache(options = {}) {
|
|
|
8
18
|
return brandDeclaration({ kind: "cache-store", type: "file", root: options.root }, "cache.store.file");
|
|
9
19
|
}
|
|
10
20
|
export function customCache(config = {}) {
|
|
11
|
-
|
|
21
|
+
const { adapter, ...metadata } = config;
|
|
22
|
+
if (adapter !== undefined && !isCacheStoreAdapter(adapter)) {
|
|
23
|
+
throw pipelineError("ASYNC_PIPELINE_INVALID_CACHE_ADAPTER", "customCache({ adapter }) requires get(key, context) and put(key, value, context) functions.");
|
|
24
|
+
}
|
|
25
|
+
return brandDeclaration({
|
|
26
|
+
kind: "cache-store",
|
|
27
|
+
type: "custom",
|
|
28
|
+
config: metadata,
|
|
29
|
+
...(adapter ? { adapter } : {})
|
|
30
|
+
}, "cache.store.custom");
|
|
12
31
|
}
|
|
13
32
|
export function redisCache(config = {}) {
|
|
14
33
|
return brandDeclaration({ kind: "cache-store", type: "custom", config: { ...config, adapter: "redis" } }, "cache.store.redis");
|
|
@@ -69,6 +88,11 @@ export function mergeWithDefaultCacheStores(registry) {
|
|
|
69
88
|
});
|
|
70
89
|
}
|
|
71
90
|
function makeCacheRegistry(defaultRef, stores) {
|
|
91
|
+
for (const [name, store] of Object.entries(stores)) {
|
|
92
|
+
if (store.adapter !== undefined && !isCacheStoreAdapter(store.adapter)) {
|
|
93
|
+
throw pipelineError("ASYNC_PIPELINE_INVALID_CACHE_ADAPTER", `Cache store "${name}" adapter requires get(key, context) and put(key, value, context) functions; optional lifecycle methods must also be functions.`);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
72
96
|
return brandDeclaration({
|
|
73
97
|
kind: "cache-registry",
|
|
74
98
|
default: defaultRef,
|
|
@@ -85,4 +109,18 @@ function makeCacheRegistry(defaultRef, stores) {
|
|
|
85
109
|
export function defaultCachePolicyForStore(store) {
|
|
86
110
|
return store === "memory" ? "session" : "local";
|
|
87
111
|
}
|
|
112
|
+
function isCacheStoreAdapter(value) {
|
|
113
|
+
if (!value || typeof value !== "object")
|
|
114
|
+
return false;
|
|
115
|
+
const adapter = value;
|
|
116
|
+
return typeof adapter.get === "function"
|
|
117
|
+
&& typeof adapter.put === "function"
|
|
118
|
+
&& optionalCacheStoreMethodIsValid(adapter.touch)
|
|
119
|
+
&& optionalCacheStoreMethodIsValid(adapter.delete)
|
|
120
|
+
&& optionalCacheStoreMethodIsValid(adapter.list)
|
|
121
|
+
&& optionalCacheStoreMethodIsValid(adapter.prune);
|
|
122
|
+
}
|
|
123
|
+
function optionalCacheStoreMethodIsValid(value) {
|
|
124
|
+
return value === undefined || typeof value === "function";
|
|
125
|
+
}
|
|
88
126
|
//# sourceMappingURL=cache.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cache.js","sourceRoot":"","sources":["../src/cache.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"cache.js","sourceRoot":"","sources":["../src/cache.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAkD5C,MAAM,OAAO,eAAgB,SAAQ,KAAK;IACxC,IAAI,CAAsB;IAC1B,SAAS,CAAW;IAEpB,YAAY,IAAyB,EAAE,OAAe,EAAE,UAAoD,EAAE;QAC5G,KAAK,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC;QACzC,IAAI,CAAC,IAAI,GAAG,iBAAiB,CAAC;QAC9B,IAAI,CAAC,IAAI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