@scarn/sdk 0.8.2 → 0.8.3

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.
Files changed (66) hide show
  1. package/dist/automations/define-automation.d.ts +20 -0
  2. package/dist/automations/index.d.ts +8 -0
  3. package/dist/automations/index.js +21 -0
  4. package/dist/automations/targets.d.ts +36 -0
  5. package/dist/automations/types.d.ts +116 -0
  6. package/dist/{chunk-nb0nkt71.js → chunk-01nfqm18.js} +1 -0
  7. package/dist/chunk-0vzq22dj.js +73 -0
  8. package/dist/chunk-11hbmexe.js +250 -0
  9. package/dist/{chunk-2fn95pdd.js → chunk-3gy0cb5f.js} +5 -1
  10. package/dist/{chunk-qrasq5xe.js → chunk-43y7tfn4.js} +33 -414
  11. package/dist/chunk-61jf8b6s.js +53 -0
  12. package/dist/chunk-76d1bwwz.js +119 -0
  13. package/dist/chunk-8z1wa3kd.js +109 -0
  14. package/dist/{chunk-p7yrcmqm.js → chunk-cnxaagfj.js} +2 -52
  15. package/dist/{chunk-cdanncng.js → chunk-ejzfdm1z.js} +21 -5
  16. package/dist/{chunk-gds7w7zh.js → chunk-fgfhvsee.js} +1 -4
  17. package/dist/{chunk-x9788y82.js → chunk-fyfvp6jx.js} +30 -13
  18. package/dist/{chunk-mz53r914.js → chunk-jj9pezwb.js} +22 -119
  19. package/dist/{chunk-8pyhrdgy.js → chunk-wnfj3wyx.js} +55 -11
  20. package/dist/chunk-x0hjhqrf.js +416 -0
  21. package/dist/chunk-y11p1q7r.js +159 -0
  22. package/dist/client.js +4 -2
  23. package/dist/contracts/automation-document/index.d.ts +5 -0
  24. package/dist/contracts/automation-document/index.js +34 -0
  25. package/dist/contracts/automation-document/schema.d.ts +363 -0
  26. package/dist/contracts/pipeline-document/built-ins.d.ts +1 -1
  27. package/dist/contracts/pipeline-document/index.js +9 -7
  28. package/dist/contracts/pipeline-document/schema.d.ts +3 -3
  29. package/dist/contracts/work-item-changes.d.ts +6 -0
  30. package/dist/contracts/work-item-changes.js +1 -0
  31. package/dist/defaults/index.js +2 -2
  32. package/dist/definitions/automations/automations-client.d.ts +178 -0
  33. package/dist/definitions/automations/index.d.ts +1 -0
  34. package/dist/definitions/automations/index.js +12 -0
  35. package/dist/definitions/pipelines/index.d.ts +0 -1
  36. package/dist/definitions/pipelines/index.js +4 -12
  37. package/dist/definitions/pipelines/work-item-fields.d.ts +11 -22
  38. package/dist/definitions/steps/define-code-step.d.ts +3 -1
  39. package/dist/definitions/steps/define-step.d.ts +13 -0
  40. package/dist/definitions/steps/index.js +9 -6
  41. package/dist/definitions/steps/repo.d.ts +11 -3
  42. package/dist/definitions/steps/runtime.d.ts +11 -12
  43. package/dist/definitions/steps/step-definitions-client.d.ts +12 -0
  44. package/dist/definitions/steps/step-features.d.ts +2 -2
  45. package/dist/definitions/steps/step-handle.d.ts +6 -1
  46. package/dist/definitions/validation/index.js +2 -2
  47. package/dist/generated/index.d.ts +2 -2
  48. package/dist/generated/sdk.gen.d.ts +37 -5
  49. package/dist/generated/types.gen.d.ts +2756 -1875
  50. package/dist/index.d.ts +1 -0
  51. package/dist/index.js +40 -30
  52. package/dist/pipelines/define-pipeline.d.ts +7 -7
  53. package/dist/pipelines/handles.d.ts +0 -5
  54. package/dist/pipelines/index.js +7 -4
  55. package/dist/pipelines/types.d.ts +13 -1
  56. package/dist/push/collect-definitions.d.ts +3 -8
  57. package/dist/push/collect-pipeline-documents.d.ts +13 -3
  58. package/dist/push/index.d.ts +2 -2
  59. package/dist/push/index.js +87 -124
  60. package/dist/push/push-from-directory.d.ts +10 -6
  61. package/dist/repo-config.d.ts +14 -4
  62. package/dist/repo-config.js +5 -1
  63. package/dist/task-plane-client.d.ts +40 -0
  64. package/package.json +13 -1
  65. package/dist/chunk-ra53p0v8.js +0 -256
  66. package/dist/definitions/pipelines/define-default-pipeline-assignment.d.ts +0 -263
@@ -11,22 +11,26 @@ export interface PushFromDirectoryResult {
11
11
  publishedPipelines: string[];
12
12
  /** Keys of the pipelines whose document matched their latest version. */
13
13
  unchangedPipelines: string[];
14
- /** true if the default pipeline assignment was synced to the server. */
15
- syncedDefaultPipelineAssignment: boolean;
14
+ /** Keys of the automations that got a new version. */
15
+ publishedAutomations: string[];
16
+ /** Keys of the automations whose document matched their latest version. */
17
+ unchangedAutomations: string[];
16
18
  }
17
19
  /**
18
20
  * Pushes a pipeline-builder directory to the server, in three passes:
19
21
  *
20
22
  * 1. Upserts every step exported from the `.ts`/`.js` files (except the push
21
- * script itself and `default-pipeline-assignment.ts`).
23
+ * script itself).
22
24
  * 2. Publishes every built pipeline document (`<key>.json`, from
23
25
  * `scarn pipelines build`), creating the pipeline when its key is new.
24
26
  * The server pins each document to the steps just pushed; a document
25
27
  * identical to its latest version publishes nothing.
26
- * 3. Syncs `default-pipeline-assignment.ts`, when present, as the project
27
- * default pipeline assignment. Every pipeline it assigns must exist by now.
28
+ * 3. Publishes every built automation document (`<key>.json` with
29
+ * `kind: "automation"`). Work-item automations go first, since a project
30
+ * automation's `attach` targets must already exist. A new automation starts
31
+ * disabled; deleting a source file unpublishes nothing.
28
32
  *
29
- * Collection (`collectDefinitionsFromDirectory`, `collectPipelineDocuments`)
33
+ * Collection (`collectDefinitionsFromDirectory`, `collectBuiltDocuments`)
30
34
  * and step validation (`validateDefinitionSpecs`) are offline and run before
31
35
  * the first mutating request, so an invalid batch fails without half-pushing.
32
36
  *
@@ -7,7 +7,8 @@ import { z } from "zod";
7
7
  * - `readOnly`: clones and checks out the base branch, but creates no work
8
8
  * branch, commits nothing and pushes nothing.
9
9
  * - `readWrite`: creates a work branch, commits and pushes. `message` is the
10
- * commit message template (`{{input.…}}` and `{{result.…}}` tokens only) and
10
+ * commit message template (`{{input.…}}`, `{{result.…}}`,
11
+ * `{{workItem.title}}` and `{{workItem.platformKey}}` tokens only) and
11
12
  * `onPushFailure` picks whether a failed push fails the step.
12
13
  *
13
14
  * Two shapes of the same data. `RepoConfigInput` is what an author or API client
@@ -21,13 +22,22 @@ import { z } from "zod";
21
22
  */
22
23
  export declare const MAX_REPO_COMMIT_MESSAGE_LENGTH = 500;
23
24
  export declare const REPO_COMMIT_MESSAGE_TOKEN_ROOTS: readonly string[];
25
+ /**
26
+ * The only `{{workItem.…}}` paths a commit message may use. The worker fills
27
+ * them from a live read of the Task's work item when it commits.
28
+ */
29
+ export declare const REPO_COMMIT_MESSAGE_WORK_ITEM_KEYS: readonly string[];
30
+ /** Whether `message` has a `{{workItem.…}}` token. */
31
+ export declare function commitMessageUsesWorkItem(message: string): boolean;
24
32
  export type RepoMode = "none" | "readOnly" | "readWrite";
25
33
  export type RepoOnPushFailure = "fail" | "warn";
26
34
  export type RepoExecutionMode = "workspace" | "no_workspace";
27
35
  /**
28
- * The root segment of every `{{…}}` token in `message` that is not one of
29
- * `REPO_COMMIT_MESSAGE_TOKEN_ROOTS`, in order of appearance. Tokens are parsed
30
- * the way `renderPromptTemplate` renders them.
36
+ * Every `{{…}}` token in `message` a commit message may not use, in order of
37
+ * appearance: its root when that is not one of
38
+ * `REPO_COMMIT_MESSAGE_TOKEN_ROOTS`, or the whole path for a `workItem` token
39
+ * other than `REPO_COMMIT_MESSAGE_WORK_ITEM_KEYS`. Tokens are parsed the way
40
+ * `renderPromptTemplate` renders them.
31
41
  */
32
42
  export declare function findDisallowedCommitMessageTokenRoots(message: string): string[];
33
43
  export declare const repoCommitMessageSchema: z.ZodString;
@@ -2,20 +2,24 @@
2
2
  import {
3
3
  MAX_REPO_COMMIT_MESSAGE_LENGTH,
4
4
  REPO_COMMIT_MESSAGE_TOKEN_ROOTS,
5
+ REPO_COMMIT_MESSAGE_WORK_ITEM_KEYS,
5
6
  REPO_RUNTIME_SUPPORT,
7
+ commitMessageUsesWorkItem,
6
8
  findDisallowedCommitMessageTokenRoots,
7
9
  repoCommitMessageSchema,
8
10
  repoConfigInputSchema,
9
11
  repoConfigSchema,
10
12
  repoRuntimeMismatch,
11
13
  resolveRepoConfig
12
- } from "./chunk-cdanncng.js";
14
+ } from "./chunk-ejzfdm1z.js";
13
15
  import"./chunk-skzxcba3.js";
14
16
  import"./chunk-y64skrwp.js";
15
17
  export {
16
18
  MAX_REPO_COMMIT_MESSAGE_LENGTH,
17
19
  REPO_COMMIT_MESSAGE_TOKEN_ROOTS,
20
+ REPO_COMMIT_MESSAGE_WORK_ITEM_KEYS,
18
21
  REPO_RUNTIME_SUPPORT,
22
+ commitMessageUsesWorkItem,
19
23
  findDisallowedCommitMessageTokenRoots,
20
24
  repoCommitMessageSchema,
21
25
  repoConfigInputSchema,
@@ -288,6 +288,7 @@ declare const buildTaskPlaneClient: (taskRuns: TaskRuns) => {
288
288
  claimToken: string;
289
289
  }) => Promise<{
290
290
  projectId: string;
291
+ projectPath: string | unknown;
291
292
  gitUrl: string;
292
293
  baseWorkBranch: string | unknown;
293
294
  projectOpencodeConfig: {
@@ -448,6 +449,45 @@ declare const buildTaskPlaneClient: (taskRuns: TaskRuns) => {
448
449
  message: string;
449
450
  } | unknown;
450
451
  }>;
452
+ readTaskRunWorkItem: ({ taskRunId, ...body }: TaskRunRef & {
453
+ claimToken: string;
454
+ workItemId: string;
455
+ }) => Promise<{
456
+ id: string;
457
+ title: string;
458
+ labels: Array<string>;
459
+ description: string | unknown;
460
+ descriptionVersion: number;
461
+ fields: {
462
+ [key: string]: unknown;
463
+ };
464
+ platform: "jira" | "github" | "bitbucket" | "linear" | "scarn" | "custom";
465
+ platformKey: string;
466
+ parentWorkItemId: string | unknown;
467
+ state: "open" | "closed";
468
+ closeReason: "completed" | "out_of_scope" | "superseded" | unknown;
469
+ resolution: string | unknown;
470
+ blockers: Array<{
471
+ id: string;
472
+ title: string;
473
+ state: "open" | "closed";
474
+ labels: Array<string>;
475
+ closeReason: "completed" | "out_of_scope" | "superseded" | unknown;
476
+ resolution: string | unknown;
477
+ blockedBy: Array<string>;
478
+ latestTaskStatus: "waiting_for_concurrency_slot" | "waiting_for_work" | "queued" | "running" | "waiting_for_person" | "succeeded" | "failed" | "cancelled" | unknown;
479
+ }>;
480
+ children: Array<{
481
+ id: string;
482
+ title: string;
483
+ state: "open" | "closed";
484
+ labels: Array<string>;
485
+ closeReason: "completed" | "out_of_scope" | "superseded" | unknown;
486
+ resolution: string | unknown;
487
+ blockedBy: Array<string>;
488
+ latestTaskStatus: "waiting_for_concurrency_slot" | "waiting_for_work" | "queued" | "running" | "waiting_for_person" | "succeeded" | "failed" | "cancelled" | unknown;
489
+ }>;
490
+ }>;
451
491
  completeTaskRun: ({ taskRunId, ...body }: TaskRunRef & Omit<CompletionBody, "status">) => Promise<void>;
452
492
  failTaskRun: ({ taskRunId, ...body }: TaskRunRef & Omit<CompletionBody, "status" | "workBranch" | "createdFromBranch">) => Promise<void>;
453
493
  yieldTaskRun: ({ taskRunId, ...body }: TaskRunRef & PostApiTaskRunsByTaskRunIdYieldsData["body"]) => Promise<void>;
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.2",
4
+ "version": "0.8.3",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {
@@ -40,10 +40,22 @@
40
40
  "import": "./dist/definitions/pipelines/index.js",
41
41
  "types": "./dist/definitions/pipelines/index.d.ts"
42
42
  },
43
+ "./definitions/automations": {
44
+ "import": "./dist/definitions/automations/index.js",
45
+ "types": "./dist/definitions/automations/index.d.ts"
46
+ },
43
47
  "./pipelines": {
44
48
  "import": "./dist/pipelines/index.js",
45
49
  "types": "./dist/pipelines/index.d.ts"
46
50
  },
51
+ "./automations": {
52
+ "import": "./dist/automations/index.js",
53
+ "types": "./dist/automations/index.d.ts"
54
+ },
55
+ "./contracts/automation-document": {
56
+ "import": "./dist/contracts/automation-document/index.js",
57
+ "types": "./dist/contracts/automation-document/index.d.ts"
58
+ },
47
59
  "./eslint": {
48
60
  "import": "./dist/eslint.js",
49
61
  "types": "./dist/eslint.d.ts"
@@ -1,256 +0,0 @@
1
- // @bun
2
- import {
3
- PipelineDefinitions,
4
- createClient
5
- } from "./chunk-8pyhrdgy.js";
6
- import {
7
- exports_external
8
- } from "./chunk-skzxcba3.js";
9
-
10
- // src/definitions/pipelines/pipeline-definitions-client.ts
11
- var pipelineDocumentIssueSchema = exports_external.object({
12
- code: exports_external.string(),
13
- path: exports_external.string(),
14
- message: exports_external.string(),
15
- hint: exports_external.string().optional()
16
- });
17
-
18
- class PipelineDefinitionsApiError extends Error {
19
- code;
20
- issues;
21
- constructor(error) {
22
- super(error.detail ?? error.title ?? JSON.stringify(error));
23
- this.name = "PipelineDefinitionsApiError";
24
- this.code = error.code;
25
- this.issues = documentIssuesOf(error.meta);
26
- }
27
- }
28
- function documentIssuesOf(meta) {
29
- const errors = meta?.["errors"];
30
- if (!Array.isArray(errors))
31
- return [];
32
- return errors.flatMap((error) => {
33
- const parsed = pipelineDocumentIssueSchema.safeParse(error);
34
- return parsed.success ? [parsed.data] : [];
35
- });
36
- }
37
- function unwrap(result) {
38
- if (result.error !== undefined) {
39
- throw new PipelineDefinitionsApiError(result.error);
40
- }
41
- return result.data;
42
- }
43
- function createPipelineDefinitionsClient(baseUrl) {
44
- const client = createClient({ baseUrl });
45
- return buildPipelineDefinitionsClient(new PipelineDefinitions({ client }));
46
- }
47
- var buildPipelineDefinitionsClient = (pipelineDefinitions) => ({
48
- listByProjectId: async (projectId, options) => unwrap(await pipelineDefinitions.listPipelineDefinitions({
49
- path: { projectId },
50
- headers: options?.headers
51
- })),
52
- get: async (pipelineDefinitionId, options) => unwrap(await pipelineDefinitions.getPipelineDefinition({
53
- path: { pipelineDefinitionId },
54
- headers: options?.headers
55
- })),
56
- create: async (input, options) => unwrap(await pipelineDefinitions.createPipelineDefinition({
57
- body: input,
58
- headers: options?.headers
59
- })),
60
- publishVersion: async (pipelineDefinitionId, document, options) => unwrap(await pipelineDefinitions.publishPipelineDefinitionVersion({
61
- path: { pipelineDefinitionId },
62
- body: { document },
63
- headers: options?.headers
64
- })),
65
- activateVersion: async (pipelineDefinitionId, version, options) => unwrap(await pipelineDefinitions.activatePipelineDefinitionVersion({
66
- path: { pipelineDefinitionId, version },
67
- headers: options?.headers
68
- })),
69
- listVersions: async (pipelineDefinitionId, options) => unwrap(await pipelineDefinitions.listPipelineDefinitionVersions({
70
- path: { pipelineDefinitionId },
71
- headers: options?.headers
72
- })),
73
- getVersion: async (pipelineDefinitionId, version, options) => unwrap(await pipelineDefinitions.getPipelineDefinitionVersion({
74
- path: { pipelineDefinitionId, version },
75
- headers: options?.headers
76
- }))
77
- });
78
- // src/definitions/pipelines/work-item-fields.ts
79
- var WORK_ITEM_TOP_LEVEL_FIELDS = [
80
- "id",
81
- "projectId",
82
- "platform",
83
- "platformId",
84
- "platformKey",
85
- "url",
86
- "title",
87
- "description",
88
- "sourceCreatedAt",
89
- "sourceUpdatedAt",
90
- "createdByUserId",
91
- "parentWorkItemId",
92
- "createdAt",
93
- "updatedAt"
94
- ];
95
- var WORK_ITEM_FIELDS_PATH_PREFIX = "fields.";
96
- function resolveWorkItemFieldPath(record, path) {
97
- if (typeof record !== "object" || record === null)
98
- return;
99
- const asRecord = record;
100
- if (path.startsWith(WORK_ITEM_FIELDS_PATH_PREFIX)) {
101
- const fieldName = path.slice(WORK_ITEM_FIELDS_PATH_PREFIX.length);
102
- const fields = asRecord["fields"];
103
- if (typeof fields !== "object" || fields === null)
104
- return;
105
- return fields[fieldName];
106
- }
107
- return asRecord[path];
108
- }
109
-
110
- // src/definitions/pipelines/define-default-pipeline-assignment.ts
111
- var DEFAULT_PIPELINE_ASSIGNMENT_FILENAME = "default-pipeline-assignment.ts";
112
- function makeLeaf(fact, path, operator, value) {
113
- const condition = {
114
- _tag: "leaf",
115
- fact,
116
- ...path ? { path } : {},
117
- operator,
118
- value
119
- };
120
- return {
121
- _condition: condition,
122
- then(outcome) {
123
- return {
124
- _tag: "assignment_rule",
125
- conditions: [condition],
126
- mode: "all",
127
- outcome
128
- };
129
- }
130
- };
131
- }
132
- function makeFieldRef(fact, path) {
133
- const untyped = {
134
- eq: (v) => makeLeaf(fact, path, "equal", v),
135
- ne: (v) => makeLeaf(fact, path, "notEqual", v),
136
- gt: (v) => makeLeaf(fact, path, "greaterThan", v),
137
- gte: (v) => makeLeaf(fact, path, "greaterThanInclusive", v),
138
- lt: (v) => makeLeaf(fact, path, "lessThan", v),
139
- lte: (v) => makeLeaf(fact, path, "lessThanInclusive", v),
140
- in: (vs) => makeLeaf(fact, path, "in", vs),
141
- notIn: (vs) => makeLeaf(fact, path, "notIn", vs),
142
- contains: (v) => makeLeaf(fact, path, "contains", v),
143
- doesNotContain: (v) => makeLeaf(fact, path, "doesNotContain", v)
144
- };
145
- return untyped;
146
- }
147
- function buildWorkItemAccessor() {
148
- const accessor = {
149
- field: (name) => makeFieldRef("workItem", `$.${WORK_ITEM_FIELDS_PATH_PREFIX}${name}`)
150
- };
151
- for (const key of WORK_ITEM_TOP_LEVEL_FIELDS) {
152
- accessor[key] = makeFieldRef("workItem", `$.${key}`);
153
- }
154
- return accessor;
155
- }
156
- function makeAssign(pipeline) {
157
- const key = typeof pipeline === "string" ? pipeline : pipeline.key;
158
- if (typeof key !== "string" || key.length === 0) {
159
- throw new Error("assign() requires a pipeline key or the value definePipeline() returns.");
160
- }
161
- return { _tag: "assign", pipelineKey: key };
162
- }
163
- function extractCondition(ref) {
164
- return ref._condition;
165
- }
166
- function makeGroup(mode, refs) {
167
- const conditions = refs.map(extractCondition);
168
- const condition = { _tag: "group", mode, conditions };
169
- return {
170
- _condition: condition,
171
- then(outcome) {
172
- return { _tag: "assignment_rule", conditions, mode, outcome };
173
- }
174
- };
175
- }
176
- function buildCtx() {
177
- return {
178
- workItem: buildWorkItemAccessor(),
179
- context: {
180
- isNew: makeFieldRef("context", "$.isNew")
181
- },
182
- assign: makeAssign,
183
- skip: () => ({ _tag: "skip" }),
184
- all: (...refs) => makeGroup("all", refs),
185
- any: (...refs) => makeGroup("any", refs)
186
- };
187
- }
188
- function defaultPipelineAssignment(callback) {
189
- const input = callback(buildCtx());
190
- return {
191
- _tag: "default_pipeline_assignment",
192
- default: input.default,
193
- rules: input.rules
194
- };
195
- }
196
- function serializeConditionNode(condition) {
197
- if (condition._tag === "leaf") {
198
- return {
199
- fact: condition.fact,
200
- ...condition.path ? { path: condition.path } : {},
201
- operator: condition.operator,
202
- value: condition.value
203
- };
204
- }
205
- if (condition.mode === "all") {
206
- return { all: condition.conditions.map(serializeConditionNode) };
207
- }
208
- return { any: condition.conditions.map(serializeConditionNode) };
209
- }
210
- function serializeOutcome(outcome) {
211
- if (outcome._tag === "skip")
212
- return { type: "skip", params: null };
213
- return { type: "assign", params: { pipelineKey: outcome.pipelineKey } };
214
- }
215
- function serializeAssignmentRule(rule) {
216
- const { type, params } = serializeOutcome(rule.outcome);
217
- return {
218
- conditions: { [rule.mode]: rule.conditions.map(serializeConditionNode) },
219
- event: { type, ...params ? { params } : {} }
220
- };
221
- }
222
- function serializeDefaultPipelineAssignment(spec) {
223
- let primaryKey = null;
224
- if (spec.default._tag === "assign") {
225
- primaryKey = spec.default.pipelineKey;
226
- } else {
227
- for (const rule of spec.rules) {
228
- if (rule.outcome._tag === "assign") {
229
- primaryKey = rule.outcome.pipelineKey;
230
- break;
231
- }
232
- }
233
- }
234
- if (primaryKey === null) {
235
- throw new Error("defaultPipelineAssignment must contain at least one assign() outcome " + "(in `default` or in `rules`). A policy that only skips is not useful.");
236
- }
237
- const { type: defaultType, params: defaultParams } = serializeOutcome(spec.default);
238
- const outcomeSet = new Set([defaultType]);
239
- const serializedRules = spec.rules.map((rule) => {
240
- outcomeSet.add(serializeOutcome(rule.outcome).type);
241
- return serializeAssignmentRule(rule);
242
- });
243
- return {
244
- pipelineDefinitionKey: primaryKey,
245
- rulesJson: { rules: serializedRules },
246
- defaultEventType: defaultType,
247
- defaultEventParamsJson: defaultParams,
248
- allowedEventTypes: [...outcomeSet]
249
- };
250
- }
251
- function isDefaultPipelineAssignmentSpec(value) {
252
- if (typeof value !== "object" || value === null)
253
- return false;
254
- return value["_tag"] === "default_pipeline_assignment";
255
- }
256
- export { PipelineDefinitionsApiError, createPipelineDefinitionsClient, WORK_ITEM_TOP_LEVEL_FIELDS, WORK_ITEM_FIELDS_PATH_PREFIX, resolveWorkItemFieldPath, DEFAULT_PIPELINE_ASSIGNMENT_FILENAME, defaultPipelineAssignment, serializeDefaultPipelineAssignment, isDefaultPipelineAssignmentSpec };