@scarn/sdk 0.8.3 → 0.8.5

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-8z1wa3kd.js";
12
+ } from "./chunk-ksnta9b5.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-3gy0cb5f.js";
65
+ } from "./chunk-0k12bjee.js";
66
66
  import"./chunk-61jf8b6s.js";
67
67
  import"./chunk-cnxaagfj.js";
68
68
  import {
@@ -89,6 +89,8 @@ import {
89
89
  defineMcp,
90
90
  defineStep,
91
91
  exports_z,
92
+ grantActionValues,
93
+ grantScopeValues,
92
94
  isMcpHandle,
93
95
  isSecretLookingEnvName,
94
96
  normalizeArtifactAccept,
@@ -97,7 +99,7 @@ import {
97
99
  resolveMcpChecks,
98
100
  toStepHandle,
99
101
  toStepSpec
100
- } from "./chunk-fyfvp6jx.js";
102
+ } from "./chunk-5abvv19e.js";
101
103
  import {
102
104
  collectEnvPlaceholderNames,
103
105
  isEnvPlaceholderValue,
@@ -147,7 +149,7 @@ import {
147
149
  WorkItemCommentDrafts,
148
150
  WorkItemComments,
149
151
  WorkItems
150
- } from "./chunk-wnfj3wyx.js";
152
+ } from "./chunk-n5vr1tn6.js";
151
153
  import {
152
154
  ARTIFACT_MARKER_SCHEME,
153
155
  buildArtifactMarker,
@@ -255,6 +257,8 @@ export {
255
257
  findArtifactMarkers,
256
258
  formatArtifactMarkerRef,
257
259
  formatIssue,
260
+ grantActionValues,
261
+ grantScopeValues,
258
262
  greaterThan,
259
263
  greaterThanInclusive,
260
264
  isEmbeddableArtifactExtension,
@@ -6,18 +6,18 @@ import {
6
6
  import {
7
7
  AutomationsApiError,
8
8
  createAutomationsClient
9
- } from "../chunk-0vzq22dj.js";
9
+ } from "../chunk-fb3sqfrw.js";
10
10
  import {
11
11
  assertValidDefinitionSpecs
12
12
  } from "../chunk-fgfhvsee.js";
13
13
  import {
14
14
  PipelineDefinitionsApiError,
15
15
  createPipelineDefinitionsClient
16
- } from "../chunk-8z1wa3kd.js";
16
+ } from "../chunk-ksnta9b5.js";
17
17
  import {
18
18
  createStepDefinitionsClient,
19
19
  toStepSpec
20
- } from "../chunk-fyfvp6jx.js";
20
+ } from "../chunk-5abvv19e.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-ejzfdm1z.js";
29
- import"../chunk-wnfj3wyx.js";
29
+ import"../chunk-n5vr1tn6.js";
30
30
  import"../chunk-ngy1fdcx.js";
31
31
  import"../chunk-y2pv8d6a.js";
32
32
  import"../chunk-01nfqm18.js";
@@ -329,7 +329,37 @@ declare const buildTaskPlaneClient: (taskRuns: TaskRuns) => {
329
329
  } | unknown;
330
330
  turnsRemaining: number | unknown;
331
331
  workItemId: string;
332
- workItemPermissions: Array<"self" | "children">;
332
+ grants: Array<{
333
+ resource: string;
334
+ action: string;
335
+ scope: "self" | "children";
336
+ } | {
337
+ resource: string;
338
+ action: string;
339
+ scope: "self" | "children";
340
+ } | {
341
+ resource: string;
342
+ action: string;
343
+ scope: "self" | "children";
344
+ } | {
345
+ resource: string;
346
+ action: string;
347
+ scope: "self" | "children";
348
+ labels: Array<string>;
349
+ } | {
350
+ resource: string;
351
+ action: string;
352
+ scope: "self" | "children";
353
+ } | {
354
+ resource: string;
355
+ action: string;
356
+ scope: "self" | "children";
357
+ } | {
358
+ resource: string;
359
+ action: string;
360
+ scope: string;
361
+ labels: Array<string>;
362
+ }>;
333
363
  };
334
364
  runtime: {
335
365
  executionMode: "workspace" | "no_workspace";
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.3",
4
+ "version": "0.8.5",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {
@@ -127,7 +127,7 @@
127
127
  "link:local": "bun link",
128
128
  "pack:local": "bun run script/pack-local.ts",
129
129
  "test": "bun test test",
130
- "typecheck": "tsgo -p tsconfig.json --noEmit"
130
+ "typecheck": "tsgo -p tsconfig.json --noEmit --incremental"
131
131
  },
132
132
  "dependencies": {
133
133
  "jsonc-parser": "^3.3.1"