@scarn/sdk 0.8.14 → 0.8.15

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/dist/index.js CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  WORK_ITEM_TOP_LEVEL_FIELDS,
10
10
  createPipelineDefinitionsClient,
11
11
  resolveWorkItemFieldPath
12
- } from "./chunk-8jfqd6m3.js";
12
+ } from "./chunk-efs789y2.js";
13
13
  import {
14
14
  after,
15
15
  all,
@@ -62,7 +62,7 @@ import {
62
62
  import {
63
63
  createScarnClient,
64
64
  createTaskPlaneClient
65
- } from "./chunk-qq5mk270.js";
65
+ } from "./chunk-7bpy3w3z.js";
66
66
  import"./chunk-61jf8b6s.js";
67
67
  import"./chunk-cnxaagfj.js";
68
68
  import {
@@ -99,7 +99,7 @@ import {
99
99
  resolveMcpChecks,
100
100
  toStepHandle,
101
101
  toStepSpec
102
- } from "./chunk-tpe834e0.js";
102
+ } from "./chunk-zf4gwg0p.js";
103
103
  import {
104
104
  collectEnvPlaceholderNames,
105
105
  isEnvPlaceholderValue,
@@ -149,7 +149,7 @@ import {
149
149
  WorkItemCommentDrafts,
150
150
  WorkItemComments,
151
151
  WorkItems
152
- } from "./chunk-qesxv9gj.js";
152
+ } from "./chunk-z25n32z0.js";
153
153
  import {
154
154
  ARTIFACT_MARKER_SCHEME,
155
155
  buildArtifactMarker,
@@ -6,18 +6,18 @@ import {
6
6
  import {
7
7
  AutomationsApiError,
8
8
  createAutomationsClient
9
- } from "../chunk-jjxbkv7z.js";
9
+ } from "../chunk-b8hxjwag.js";
10
10
  import {
11
11
  assertValidDefinitionSpecs
12
12
  } from "../chunk-1yb2h6t9.js";
13
13
  import {
14
14
  PipelineDefinitionsApiError,
15
15
  createPipelineDefinitionsClient
16
- } from "../chunk-8jfqd6m3.js";
16
+ } from "../chunk-efs789y2.js";
17
17
  import {
18
18
  createStepDefinitionsClient,
19
19
  toStepSpec
20
- } from "../chunk-tpe834e0.js";
20
+ } from "../chunk-zf4gwg0p.js";
21
21
  import"../chunk-e1h021kq.js";
22
22
  import"../chunk-63f90zky.js";
23
23
  import"../chunk-jj9pezwb.js";
@@ -26,7 +26,7 @@ import"../chunk-5zsavw98.js";
26
26
  import"../chunk-4ggr8af6.js";
27
27
  import"../chunk-k4y5qt4y.js";
28
28
  import"../chunk-xzx08r6y.js";
29
- import"../chunk-qesxv9gj.js";
29
+ import"../chunk-z25n32z0.js";
30
30
  import"../chunk-ngy1fdcx.js";
31
31
  import"../chunk-y2pv8d6a.js";
32
32
  import"../chunk-01nfqm18.js";
@@ -6,6 +6,13 @@ type TaskRunRef = {
6
6
  type CompletionBody = PostApiTaskRunsByTaskRunIdCompletionsData["body"];
7
7
  export type TaskPlaneClientOptions = {
8
8
  headers?: Record<string, string> | undefined;
9
+ /**
10
+ * Headers resolved per request and set over {@link headers}, for values
11
+ * that can change during the client's lifetime (e.g. a rotated token).
12
+ */
13
+ requestHeaders?: (() => Promise<Record<string, string>> | Record<string, string>) | undefined;
14
+ /** Sees every response before it is parsed; throwing fails the call. */
15
+ onResponse?: ((response: Response) => Promise<void> | void) | undefined;
9
16
  };
10
17
  /**
11
18
  * Worker-facing client for the task-run plane (`/api/task-runs/...`): claiming,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@scarn/sdk",
4
- "version": "0.8.14",
4
+ "version": "0.8.15",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {