@scarn/sdk 0.8.18 → 0.8.20
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/automations/index.js +5 -5
- package/dist/{chunk-61jf8b6s.js → chunk-5dny5jg1.js} +11 -1
- package/dist/{chunk-ymywp5ht.js → chunk-91f5gm5z.js} +1 -1
- package/dist/{chunk-p1fs73bd.js → chunk-a56zc4s5.js} +1 -1
- package/dist/{chunk-evb3hw48.js → chunk-b9ja6ss5.js} +6 -3
- package/dist/{chunk-2tmrw253.js → chunk-g4j5cfpc.js} +1 -1
- package/dist/{chunk-9we3vqsv.js → chunk-habmdf89.js} +2 -2
- package/dist/{chunk-x0hjhqrf.js → chunk-mp2rqtcj.js} +1 -1
- package/dist/{chunk-mmy80pec.js → chunk-n3ywwx7n.js} +1 -1
- package/dist/{chunk-3zp2qtf8.js → chunk-rq5k7m33.js} +10 -0
- package/dist/{chunk-tvjcfh6s.js → chunk-tr3v83cn.js} +1 -1
- package/dist/{chunk-jj9pezwb.js → chunk-xqfj56m9.js} +43 -3
- package/dist/{chunk-833ef6dg.js → chunk-yq0sf8sb.js} +2 -2
- package/dist/{chunk-aknfw08j.js → chunk-z4smq8qd.js} +15 -12
- package/dist/client.js +2 -2
- package/dist/contracts/automation-document/index.js +2 -2
- package/dist/contracts/pipeline-document/index.js +4 -2
- package/dist/contracts/pipeline-document/routes.d.ts +9 -0
- package/dist/contracts/pipeline-document/schema.d.ts +40 -1
- package/dist/defaults/index.js +2 -2
- package/dist/definitions/automations/index.js +2 -2
- package/dist/definitions/environments/index.js +2 -2
- package/dist/definitions/pipelines/index.js +2 -2
- package/dist/definitions/steps/index.js +3 -3
- package/dist/generated/index.d.ts +1 -1
- package/dist/generated/sdk.gen.d.ts +7 -3
- package/dist/generated/types.gen.d.ts +349 -0
- package/dist/index.js +11 -11
- package/dist/pipelines/index.d.ts +1 -1
- package/dist/pipelines/index.js +5 -5
- package/dist/pipelines/model.d.ts +10 -4
- package/dist/pipelines/types.d.ts +13 -1
- package/dist/push/index.js +6 -6
- package/dist/task-plane-client.d.ts +8 -0
- package/package.json +1 -1
|
@@ -3479,6 +3479,17 @@ export type PostApiTasksData = {
|
|
|
3479
3479
|
workItemId: string;
|
|
3480
3480
|
inputJson?: unknown | null;
|
|
3481
3481
|
executionTimeoutSeconds?: number | null;
|
|
3482
|
+
environment?: {
|
|
3483
|
+
name?: string;
|
|
3484
|
+
extraConnectors?: Array<{
|
|
3485
|
+
connectorId: string;
|
|
3486
|
+
vars?: {
|
|
3487
|
+
[key: string]: {
|
|
3488
|
+
secret: string;
|
|
3489
|
+
};
|
|
3490
|
+
};
|
|
3491
|
+
}>;
|
|
3492
|
+
};
|
|
3482
3493
|
stepDefinitionId: string;
|
|
3483
3494
|
stepDefinitionVersion: number;
|
|
3484
3495
|
} | {
|
|
@@ -3486,7 +3497,19 @@ export type PostApiTasksData = {
|
|
|
3486
3497
|
workItemId: string;
|
|
3487
3498
|
inputJson?: unknown | null;
|
|
3488
3499
|
executionTimeoutSeconds?: number | null;
|
|
3500
|
+
environment?: {
|
|
3501
|
+
name?: string;
|
|
3502
|
+
extraConnectors?: Array<{
|
|
3503
|
+
connectorId: string;
|
|
3504
|
+
vars?: {
|
|
3505
|
+
[key: string]: {
|
|
3506
|
+
secret: string;
|
|
3507
|
+
};
|
|
3508
|
+
};
|
|
3509
|
+
}>;
|
|
3510
|
+
};
|
|
3489
3511
|
prompt: string;
|
|
3512
|
+
repoWrite?: boolean;
|
|
3490
3513
|
};
|
|
3491
3514
|
path?: never;
|
|
3492
3515
|
query?: never;
|
|
@@ -3641,6 +3664,16 @@ export type PostApiTasksResponses = {
|
|
|
3641
3664
|
kind: 'agent' | 'code';
|
|
3642
3665
|
name: string | null;
|
|
3643
3666
|
taskExecutionConfigId: string | null;
|
|
3667
|
+
environmentSelection: {
|
|
3668
|
+
extraConnectors: Array<{
|
|
3669
|
+
connectorId: string;
|
|
3670
|
+
vars: {
|
|
3671
|
+
[key: string]: {
|
|
3672
|
+
secret: string;
|
|
3673
|
+
};
|
|
3674
|
+
};
|
|
3675
|
+
}>;
|
|
3676
|
+
} | null;
|
|
3644
3677
|
inputJson: unknown | null;
|
|
3645
3678
|
retryJson: unknown | null;
|
|
3646
3679
|
grants: Array<{
|
|
@@ -4090,6 +4123,16 @@ export type GetApiTasksByTaskIdResponses = {
|
|
|
4090
4123
|
kind: 'agent' | 'code';
|
|
4091
4124
|
name: string | null;
|
|
4092
4125
|
taskExecutionConfigId: string | null;
|
|
4126
|
+
environmentSelection: {
|
|
4127
|
+
extraConnectors: Array<{
|
|
4128
|
+
connectorId: string;
|
|
4129
|
+
vars: {
|
|
4130
|
+
[key: string]: {
|
|
4131
|
+
secret: string;
|
|
4132
|
+
};
|
|
4133
|
+
};
|
|
4134
|
+
}>;
|
|
4135
|
+
} | null;
|
|
4093
4136
|
inputJson: unknown | null;
|
|
4094
4137
|
retryJson: unknown | null;
|
|
4095
4138
|
grants: Array<{
|
|
@@ -5393,6 +5436,14 @@ export type PostApiTaskRunsByTaskRunIdWorkerContextResponses = {
|
|
|
5393
5436
|
protocol?: 'legacy' | 'auto' | '2026-07-28';
|
|
5394
5437
|
};
|
|
5395
5438
|
} | null;
|
|
5439
|
+
extraConnectors: Array<{
|
|
5440
|
+
connectorId: string;
|
|
5441
|
+
vars: {
|
|
5442
|
+
[key: string]: {
|
|
5443
|
+
secret: string;
|
|
5444
|
+
};
|
|
5445
|
+
};
|
|
5446
|
+
}>;
|
|
5396
5447
|
};
|
|
5397
5448
|
agentPrompt: {
|
|
5398
5449
|
sessionTitle: string;
|
|
@@ -11015,6 +11066,304 @@ export type PostApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdRerunRe
|
|
|
11015
11066
|
};
|
|
11016
11067
|
};
|
|
11017
11068
|
export type PostApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdRerunResponse = PostApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdRerunResponses[keyof PostApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdRerunResponses];
|
|
11069
|
+
export type PostApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdRouteData = {
|
|
11070
|
+
body: {
|
|
11071
|
+
routes: Array<{
|
|
11072
|
+
kind: 'route';
|
|
11073
|
+
index: number;
|
|
11074
|
+
} | {
|
|
11075
|
+
kind: 'otherwise';
|
|
11076
|
+
} | {
|
|
11077
|
+
to: string;
|
|
11078
|
+
} | {
|
|
11079
|
+
label: string;
|
|
11080
|
+
}>;
|
|
11081
|
+
reason: string;
|
|
11082
|
+
acceptMissing?: boolean;
|
|
11083
|
+
preview?: boolean;
|
|
11084
|
+
};
|
|
11085
|
+
path: {
|
|
11086
|
+
pipelineExecutionId: string;
|
|
11087
|
+
visitId: string;
|
|
11088
|
+
};
|
|
11089
|
+
query?: never;
|
|
11090
|
+
url: '/api/pipeline-executions/{pipelineExecutionId}/visits/{visitId}/route';
|
|
11091
|
+
};
|
|
11092
|
+
export type PostApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdRouteErrors = {
|
|
11093
|
+
/**
|
|
11094
|
+
* Response for status 401
|
|
11095
|
+
*/
|
|
11096
|
+
401: {
|
|
11097
|
+
type: string;
|
|
11098
|
+
title: string;
|
|
11099
|
+
status: number;
|
|
11100
|
+
detail?: string;
|
|
11101
|
+
instance?: string;
|
|
11102
|
+
code?: string;
|
|
11103
|
+
errors?: Array<{
|
|
11104
|
+
path: string;
|
|
11105
|
+
message: string;
|
|
11106
|
+
summary?: string;
|
|
11107
|
+
}>;
|
|
11108
|
+
meta?: {
|
|
11109
|
+
[key: string]: unknown;
|
|
11110
|
+
};
|
|
11111
|
+
};
|
|
11112
|
+
/**
|
|
11113
|
+
* Response for status 403
|
|
11114
|
+
*/
|
|
11115
|
+
403: {
|
|
11116
|
+
type: string;
|
|
11117
|
+
title: string;
|
|
11118
|
+
status: number;
|
|
11119
|
+
detail?: string;
|
|
11120
|
+
instance?: string;
|
|
11121
|
+
code?: string;
|
|
11122
|
+
errors?: Array<{
|
|
11123
|
+
path: string;
|
|
11124
|
+
message: string;
|
|
11125
|
+
summary?: string;
|
|
11126
|
+
}>;
|
|
11127
|
+
meta?: {
|
|
11128
|
+
[key: string]: unknown;
|
|
11129
|
+
};
|
|
11130
|
+
};
|
|
11131
|
+
/**
|
|
11132
|
+
* Response for status 404
|
|
11133
|
+
*/
|
|
11134
|
+
404: {
|
|
11135
|
+
type: string;
|
|
11136
|
+
title: string;
|
|
11137
|
+
status: number;
|
|
11138
|
+
detail?: string;
|
|
11139
|
+
instance?: string;
|
|
11140
|
+
code?: string;
|
|
11141
|
+
errors?: Array<{
|
|
11142
|
+
path: string;
|
|
11143
|
+
message: string;
|
|
11144
|
+
summary?: string;
|
|
11145
|
+
}>;
|
|
11146
|
+
meta?: {
|
|
11147
|
+
[key: string]: unknown;
|
|
11148
|
+
};
|
|
11149
|
+
};
|
|
11150
|
+
/**
|
|
11151
|
+
* Response for status 409
|
|
11152
|
+
*/
|
|
11153
|
+
409: {
|
|
11154
|
+
type: string;
|
|
11155
|
+
title: string;
|
|
11156
|
+
status: number;
|
|
11157
|
+
detail?: string;
|
|
11158
|
+
instance?: string;
|
|
11159
|
+
code?: string;
|
|
11160
|
+
errors?: Array<{
|
|
11161
|
+
path: string;
|
|
11162
|
+
message: string;
|
|
11163
|
+
summary?: string;
|
|
11164
|
+
}>;
|
|
11165
|
+
meta?: {
|
|
11166
|
+
[key: string]: unknown;
|
|
11167
|
+
};
|
|
11168
|
+
};
|
|
11169
|
+
/**
|
|
11170
|
+
* Response for status 422
|
|
11171
|
+
*/
|
|
11172
|
+
422: {
|
|
11173
|
+
type: string;
|
|
11174
|
+
title: string;
|
|
11175
|
+
status: number;
|
|
11176
|
+
detail?: string;
|
|
11177
|
+
instance?: string;
|
|
11178
|
+
code?: string;
|
|
11179
|
+
errors?: Array<{
|
|
11180
|
+
path: string;
|
|
11181
|
+
message: string;
|
|
11182
|
+
summary?: string;
|
|
11183
|
+
}>;
|
|
11184
|
+
meta?: {
|
|
11185
|
+
[key: string]: unknown;
|
|
11186
|
+
};
|
|
11187
|
+
};
|
|
11188
|
+
/**
|
|
11189
|
+
* Response for status 500
|
|
11190
|
+
*/
|
|
11191
|
+
500: {
|
|
11192
|
+
type: string;
|
|
11193
|
+
title: string;
|
|
11194
|
+
status: number;
|
|
11195
|
+
detail?: string;
|
|
11196
|
+
instance?: string;
|
|
11197
|
+
code?: string;
|
|
11198
|
+
errors?: Array<{
|
|
11199
|
+
path: string;
|
|
11200
|
+
message: string;
|
|
11201
|
+
summary?: string;
|
|
11202
|
+
}>;
|
|
11203
|
+
meta?: {
|
|
11204
|
+
[key: string]: unknown;
|
|
11205
|
+
};
|
|
11206
|
+
};
|
|
11207
|
+
};
|
|
11208
|
+
export type PostApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdRouteError = PostApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdRouteErrors[keyof PostApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdRouteErrors];
|
|
11209
|
+
export type PostApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdRouteResponses = {
|
|
11210
|
+
/**
|
|
11211
|
+
* Response for status 200
|
|
11212
|
+
*/
|
|
11213
|
+
200: {
|
|
11214
|
+
id: string;
|
|
11215
|
+
projectId: string;
|
|
11216
|
+
workItemId: string;
|
|
11217
|
+
workItemTitle: string;
|
|
11218
|
+
pipelineDefinitionId: string;
|
|
11219
|
+
pipelineDefinitionVersionId: string;
|
|
11220
|
+
runStatus: 'active' | 'waiting' | 'succeeded' | 'failed' | 'cancelled';
|
|
11221
|
+
status: 'queued' | 'running' | 'waiting' | 'succeeded' | 'failed' | 'cancelled';
|
|
11222
|
+
waitingFor: 'decision' | 'reply' | null;
|
|
11223
|
+
endNodeId: string | null;
|
|
11224
|
+
error: {
|
|
11225
|
+
name: string;
|
|
11226
|
+
message: string;
|
|
11227
|
+
cause?: unknown;
|
|
11228
|
+
} | null;
|
|
11229
|
+
triggeredByUserId: string | null;
|
|
11230
|
+
startedBy: {
|
|
11231
|
+
kind: 'user';
|
|
11232
|
+
userId: string;
|
|
11233
|
+
username: string | null;
|
|
11234
|
+
} | {
|
|
11235
|
+
kind: 'automation';
|
|
11236
|
+
automationId: string;
|
|
11237
|
+
key: string;
|
|
11238
|
+
title: string | null;
|
|
11239
|
+
} | {
|
|
11240
|
+
kind: 'system';
|
|
11241
|
+
};
|
|
11242
|
+
cancelledByUserId: string | null;
|
|
11243
|
+
startedAt: string | null;
|
|
11244
|
+
completedAt: string | null;
|
|
11245
|
+
createdAt: string;
|
|
11246
|
+
updatedAt: string;
|
|
11247
|
+
visits: Array<{
|
|
11248
|
+
id: string;
|
|
11249
|
+
nodeId: string;
|
|
11250
|
+
nodeKind: 'step' | 'wait' | 'succeed' | 'fail';
|
|
11251
|
+
laneId: string | null;
|
|
11252
|
+
fromVisitId: string | null;
|
|
11253
|
+
fromLaneGroupId: string | null;
|
|
11254
|
+
transition: {
|
|
11255
|
+
kind: 'start' | 'route' | 'otherwise' | 'catch' | 'merge';
|
|
11256
|
+
index: number;
|
|
11257
|
+
};
|
|
11258
|
+
routing: {
|
|
11259
|
+
[key: string]: unknown;
|
|
11260
|
+
} | null;
|
|
11261
|
+
status: 'active' | 'waiting' | 'succeeded' | 'failed' | 'cancelled' | 'superseded';
|
|
11262
|
+
waitFor: 'decision' | 'reply' | null;
|
|
11263
|
+
actions: Array<{
|
|
11264
|
+
key: string;
|
|
11265
|
+
label: string;
|
|
11266
|
+
body: 'optional' | 'required';
|
|
11267
|
+
}> | null;
|
|
11268
|
+
input: {
|
|
11269
|
+
[key: string]: unknown;
|
|
11270
|
+
};
|
|
11271
|
+
result: unknown | null;
|
|
11272
|
+
resultTaskId: string | null;
|
|
11273
|
+
error: {
|
|
11274
|
+
name: string;
|
|
11275
|
+
message: string;
|
|
11276
|
+
cause?: unknown;
|
|
11277
|
+
} | null;
|
|
11278
|
+
tasks: Array<{
|
|
11279
|
+
taskId: string;
|
|
11280
|
+
attemptNumber: number;
|
|
11281
|
+
status: 'pending' | 'queued' | 'running' | 'succeeded' | 'failed' | 'timeout' | 'abandoned' | 'cancelled' | 'skipped' | 'yielded';
|
|
11282
|
+
startedAt: string | null;
|
|
11283
|
+
completedAt: string | null;
|
|
11284
|
+
workBranch: string | null;
|
|
11285
|
+
}>;
|
|
11286
|
+
questions: Array<{
|
|
11287
|
+
questionId: string;
|
|
11288
|
+
commentId: string;
|
|
11289
|
+
status: 'open' | 'answered' | 'not_needed';
|
|
11290
|
+
}>;
|
|
11291
|
+
conversationId: string | null;
|
|
11292
|
+
createdByUserId: string | null;
|
|
11293
|
+
resolvedByUserId: string | null;
|
|
11294
|
+
resolvedAt: string | null;
|
|
11295
|
+
createdAt: string;
|
|
11296
|
+
completedAt: string | null;
|
|
11297
|
+
}>;
|
|
11298
|
+
laneGroups: Array<{
|
|
11299
|
+
id: string;
|
|
11300
|
+
parentLaneId: string | null;
|
|
11301
|
+
spawnedByVisitId: string;
|
|
11302
|
+
kind: 'each' | 'all';
|
|
11303
|
+
laneCount: number;
|
|
11304
|
+
maxConcurrency: number | null;
|
|
11305
|
+
toleratedFailures: {
|
|
11306
|
+
count: number;
|
|
11307
|
+
} | {
|
|
11308
|
+
percent: number;
|
|
11309
|
+
};
|
|
11310
|
+
status: 'open' | 'merged' | 'failed';
|
|
11311
|
+
}>;
|
|
11312
|
+
lanes: Array<{
|
|
11313
|
+
id: string;
|
|
11314
|
+
laneGroupId: string;
|
|
11315
|
+
index: number;
|
|
11316
|
+
item: unknown | null;
|
|
11317
|
+
route: {
|
|
11318
|
+
kind: 'start' | 'route' | 'otherwise' | 'catch' | 'merge';
|
|
11319
|
+
index: number;
|
|
11320
|
+
};
|
|
11321
|
+
origin: 'split' | 'merge';
|
|
11322
|
+
status: 'pending' | 'active' | 'arrived' | 'ended' | 'failed' | 'cancelled';
|
|
11323
|
+
arrivedAtNodeId: string | null;
|
|
11324
|
+
arrivalArgs: {
|
|
11325
|
+
[key: string]: unknown;
|
|
11326
|
+
} | null;
|
|
11327
|
+
arrivedFromVisitId: string | null;
|
|
11328
|
+
arrivalTransition: {
|
|
11329
|
+
kind: 'start' | 'route' | 'otherwise' | 'catch' | 'merge';
|
|
11330
|
+
index: number;
|
|
11331
|
+
} | null;
|
|
11332
|
+
mergedIntoVisitId: string | null;
|
|
11333
|
+
}>;
|
|
11334
|
+
} | {
|
|
11335
|
+
preview: {
|
|
11336
|
+
superseded: Array<{
|
|
11337
|
+
visitId: string;
|
|
11338
|
+
nodeId: string;
|
|
11339
|
+
status: 'active' | 'waiting' | 'succeeded' | 'failed' | 'cancelled' | 'superseded';
|
|
11340
|
+
}>;
|
|
11341
|
+
cancelledTasks: number;
|
|
11342
|
+
lanesAdded: Array<{
|
|
11343
|
+
route: {
|
|
11344
|
+
kind: 'start' | 'route' | 'otherwise' | 'catch' | 'merge';
|
|
11345
|
+
index: number;
|
|
11346
|
+
};
|
|
11347
|
+
label?: string;
|
|
11348
|
+
}>;
|
|
11349
|
+
lanesRemoved: Array<{
|
|
11350
|
+
route: {
|
|
11351
|
+
kind: 'start' | 'route' | 'otherwise' | 'catch' | 'merge';
|
|
11352
|
+
index: number;
|
|
11353
|
+
};
|
|
11354
|
+
label?: string;
|
|
11355
|
+
}>;
|
|
11356
|
+
mergesRerun: Array<string>;
|
|
11357
|
+
started: Array<string>;
|
|
11358
|
+
reopensRun: boolean;
|
|
11359
|
+
missing: Array<{
|
|
11360
|
+
arg: string;
|
|
11361
|
+
reference: string;
|
|
11362
|
+
}>;
|
|
11363
|
+
};
|
|
11364
|
+
};
|
|
11365
|
+
};
|
|
11366
|
+
export type PostApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdRouteResponse = PostApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdRouteResponses[keyof PostApiPipelineExecutionsByPipelineExecutionIdVisitsByVisitIdRouteResponses];
|
|
11018
11367
|
export type PostApiPipelineExecutionsByPipelineExecutionIdQuestionsByQuestionIdAnswerData = {
|
|
11019
11368
|
body: {
|
|
11020
11369
|
body: string;
|
package/dist/index.js
CHANGED
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
WORK_ITEM_TOP_LEVEL_FIELDS,
|
|
20
20
|
createPipelineDefinitionsClient,
|
|
21
21
|
resolveWorkItemFieldPath
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-91f5gm5z.js";
|
|
23
23
|
import {
|
|
24
24
|
after,
|
|
25
25
|
all,
|
|
@@ -55,21 +55,21 @@ import {
|
|
|
55
55
|
sum,
|
|
56
56
|
workItem,
|
|
57
57
|
workItemField
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-z4smq8qd.js";
|
|
59
59
|
import {
|
|
60
60
|
attach,
|
|
61
61
|
defineAutomation,
|
|
62
62
|
onEvent,
|
|
63
63
|
skip
|
|
64
|
-
} from "./chunk-
|
|
65
|
-
import"./chunk-
|
|
66
|
-
import"./chunk-
|
|
64
|
+
} from "./chunk-habmdf89.js";
|
|
65
|
+
import"./chunk-mp2rqtcj.js";
|
|
66
|
+
import"./chunk-a56zc4s5.js";
|
|
67
67
|
import {
|
|
68
68
|
createScarnClient,
|
|
69
69
|
createTaskPlaneClient
|
|
70
|
-
} from "./chunk-
|
|
71
|
-
import"./chunk-
|
|
72
|
-
import"./chunk-
|
|
70
|
+
} from "./chunk-tr3v83cn.js";
|
|
71
|
+
import"./chunk-5dny5jg1.js";
|
|
72
|
+
import"./chunk-b9ja6ss5.js";
|
|
73
73
|
import {
|
|
74
74
|
ARTIFACT_BRAND,
|
|
75
75
|
Artifact,
|
|
@@ -99,7 +99,7 @@ import {
|
|
|
99
99
|
stepEnvironmentHandle,
|
|
100
100
|
toStepHandle,
|
|
101
101
|
toStepSpec
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-yq0sf8sb.js";
|
|
103
103
|
import"./chunk-y34zsgsw.js";
|
|
104
104
|
import {
|
|
105
105
|
Env,
|
|
@@ -115,7 +115,7 @@ import {
|
|
|
115
115
|
renderPromptTemplate
|
|
116
116
|
} from "./chunk-t1dq2c2s.js";
|
|
117
117
|
import"./chunk-6tra3gw8.js";
|
|
118
|
-
import"./chunk-
|
|
118
|
+
import"./chunk-xqfj56m9.js";
|
|
119
119
|
import {
|
|
120
120
|
PipelineBuildError,
|
|
121
121
|
formatIssue
|
|
@@ -186,7 +186,7 @@ import {
|
|
|
186
186
|
WorkItemCommentDrafts,
|
|
187
187
|
WorkItemComments,
|
|
188
188
|
WorkItems
|
|
189
|
-
} from "./chunk-
|
|
189
|
+
} from "./chunk-rq5k7m33.js";
|
|
190
190
|
import {
|
|
191
191
|
ARTIFACT_MARKER_SCHEME,
|
|
192
192
|
buildArtifactMarker,
|
|
@@ -13,6 +13,6 @@ export { PipelineBuildError, formatIssue } from "./errors";
|
|
|
13
13
|
export type { BuildIssue } from "./errors";
|
|
14
14
|
export type { SourceSite } from "./source";
|
|
15
15
|
export type { Arg, Args, ErrorValue, JsonLiteral, Literal, Placeholder, Ref, UntypedPlaceholder, } from "./ref-types";
|
|
16
|
-
export type { BuiltInError, CatchContext, ConversationResult, DecisionResult, EachOptions, EachTarget, FlowChain, Mergeable, NextContext, NextOptions, NextRoute, NodeHandle, PartialTarget, PipelineStep, ReplyInput, ReplyResult, StepSettings, Target, Terminal, WaitError, WaitHandle, WaitSettings, } from "./types";
|
|
16
|
+
export type { BuiltInError, CatchContext, ConversationResult, DecisionResult, EachOptions, EachTarget, FlowChain, Mergeable, NextContext, NextOptions, NextRoute, NodeHandle, OtherwiseRoute, PartialTarget, PipelineStep, ReplyInput, ReplyResult, StepSettings, Target, Terminal, WaitError, WaitHandle, WaitSettings, } from "./types";
|
|
17
17
|
export type { StepRef } from "../definitions/steps/step-ref";
|
|
18
18
|
export type { Catch, Condition as ConditionJson, DecisionAction, DecisionBody, ListArg, JsonSchema, JsonValue, PipelineDocument, PipelineNode, StepCatalog, Next, Otherwise, Route, StepContract, ToleratedFailures, } from "../contracts/pipeline-document";
|
package/dist/pipelines/index.js
CHANGED
|
@@ -34,11 +34,11 @@ import {
|
|
|
34
34
|
sum,
|
|
35
35
|
workItem,
|
|
36
36
|
workItemField
|
|
37
|
-
} from "../chunk-
|
|
38
|
-
import"../chunk-
|
|
39
|
-
import"../chunk-
|
|
40
|
-
import"../chunk-
|
|
41
|
-
import"../chunk-
|
|
37
|
+
} from "../chunk-z4smq8qd.js";
|
|
38
|
+
import"../chunk-mp2rqtcj.js";
|
|
39
|
+
import"../chunk-5dny5jg1.js";
|
|
40
|
+
import"../chunk-b9ja6ss5.js";
|
|
41
|
+
import"../chunk-xqfj56m9.js";
|
|
42
42
|
import {
|
|
43
43
|
PipelineBuildError,
|
|
44
44
|
formatIssue
|
|
@@ -77,15 +77,21 @@ export interface CatchData {
|
|
|
77
77
|
readonly target: TargetSpec;
|
|
78
78
|
readonly site: SourceSite | null;
|
|
79
79
|
}
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
/** A route's target with its `label` and `overridable` flag. */
|
|
81
|
+
export interface OtherwiseData {
|
|
82
82
|
readonly target: TargetSpec;
|
|
83
|
+
readonly label: string | undefined;
|
|
84
|
+
readonly overridable: true | undefined;
|
|
85
|
+
}
|
|
86
|
+
export interface RouteData extends OtherwiseData {
|
|
87
|
+
readonly when: ((r: object) => object) | undefined;
|
|
83
88
|
}
|
|
84
|
-
/** The `.next(...)` call: its routes, `otherwise`,
|
|
89
|
+
/** The `.next(...)` call: its routes, `otherwise`, match mode and `overridable`. */
|
|
85
90
|
export interface NextData {
|
|
86
91
|
readonly match: "first" | "all" | undefined;
|
|
87
92
|
readonly routes: readonly RouteData[];
|
|
88
|
-
readonly otherwise:
|
|
93
|
+
readonly otherwise: OtherwiseData | undefined;
|
|
94
|
+
readonly overridable: true | undefined;
|
|
89
95
|
readonly site: SourceSite | null;
|
|
90
96
|
}
|
|
91
97
|
export interface ChainData {
|
|
@@ -83,6 +83,16 @@ export type TargetArg<C, T> = T | ((r: C) => T);
|
|
|
83
83
|
export interface NextRoute<C> {
|
|
84
84
|
when?: (r: C) => Condition;
|
|
85
85
|
to: TargetArg<C, NextTarget>;
|
|
86
|
+
/** Names the route for the people and tools that pick it; unique within one `.next(...)`. */
|
|
87
|
+
label?: string;
|
|
88
|
+
/** Lets a person overrule a visit onto this route. */
|
|
89
|
+
overridable?: true;
|
|
90
|
+
}
|
|
91
|
+
/** `otherwise` with a `label` or `overridable`. */
|
|
92
|
+
export interface OtherwiseRoute<C> {
|
|
93
|
+
to: TargetArg<C, NextTarget>;
|
|
94
|
+
label?: string;
|
|
95
|
+
overridable?: true;
|
|
86
96
|
}
|
|
87
97
|
/**
|
|
88
98
|
* The routes of `.next(...)`. In `"first"` mode (the default) the first
|
|
@@ -93,7 +103,9 @@ export interface NextOptions<C> {
|
|
|
93
103
|
match?: "first" | "all";
|
|
94
104
|
routes: readonly [NextRoute<C>, ...NextRoute<C>[]];
|
|
95
105
|
/** Taken when no route with a `when` matched. With nothing taken, the path ends there. */
|
|
96
|
-
otherwise?: TargetArg<C, NextTarget>;
|
|
106
|
+
otherwise?: TargetArg<C, NextTarget> | OtherwiseRoute<C>;
|
|
107
|
+
/** Makes every route overridable, except routes without `when` in `"all"` mode. */
|
|
108
|
+
overridable?: true;
|
|
97
109
|
}
|
|
98
110
|
export interface Routable<C, Out> {
|
|
99
111
|
/** Where to go next: one target, or routes with conditions. Ends the chain. */
|
package/dist/push/index.js
CHANGED
|
@@ -2,23 +2,23 @@
|
|
|
2
2
|
import {
|
|
3
3
|
EnvironmentsApiError,
|
|
4
4
|
createEnvironmentsClient
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-n3ywwx7n.js";
|
|
6
6
|
import {
|
|
7
7
|
AutomationsApiError,
|
|
8
8
|
createAutomationsClient
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-g4j5cfpc.js";
|
|
10
10
|
import {
|
|
11
11
|
assertValidDefinitionSpecs
|
|
12
12
|
} from "../chunk-0c60x3v8.js";
|
|
13
13
|
import {
|
|
14
14
|
PipelineDefinitionsApiError,
|
|
15
15
|
createPipelineDefinitionsClient
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-91f5gm5z.js";
|
|
17
17
|
import {
|
|
18
18
|
createStepDefinitionsClient,
|
|
19
19
|
stepEnvironmentHandle,
|
|
20
20
|
toStepSpec
|
|
21
|
-
} from "../chunk-
|
|
21
|
+
} from "../chunk-yq0sf8sb.js";
|
|
22
22
|
import"../chunk-y34zsgsw.js";
|
|
23
23
|
import"../chunk-t1dq2c2s.js";
|
|
24
24
|
import {
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
isStepDefinitionSpec,
|
|
27
27
|
stepsInModule
|
|
28
28
|
} from "../chunk-6tra3gw8.js";
|
|
29
|
-
import"../chunk-
|
|
29
|
+
import"../chunk-xqfj56m9.js";
|
|
30
30
|
import"../chunk-y11p1q7r.js";
|
|
31
31
|
import"../chunk-rphfy0fj.js";
|
|
32
32
|
import"../chunk-e0pt5x0e.js";
|
|
@@ -35,7 +35,7 @@ import"../chunk-46wmsgv7.js";
|
|
|
35
35
|
import"../chunk-qgkx89eg.js";
|
|
36
36
|
import"../chunk-pqtd0hr7.js";
|
|
37
37
|
import"../chunk-aemxz9r7.js";
|
|
38
|
-
import"../chunk-
|
|
38
|
+
import"../chunk-rq5k7m33.js";
|
|
39
39
|
import"../chunk-ngy1fdcx.js";
|
|
40
40
|
import"../chunk-19brnwkp.js";
|
|
41
41
|
import"../chunk-01nfqm18.js";
|
|
@@ -602,6 +602,14 @@ declare const buildTaskPlaneClient: (taskRuns: TaskRuns) => {
|
|
|
602
602
|
protocol?: "legacy" | "auto" | "2026-07-28";
|
|
603
603
|
};
|
|
604
604
|
} | null;
|
|
605
|
+
extraConnectors: Array<{
|
|
606
|
+
connectorId: string;
|
|
607
|
+
vars: {
|
|
608
|
+
[key: string]: {
|
|
609
|
+
secret: string;
|
|
610
|
+
};
|
|
611
|
+
};
|
|
612
|
+
}>;
|
|
605
613
|
};
|
|
606
614
|
agentPrompt: {
|
|
607
615
|
sessionTitle: string;
|