@scarn/sdk 0.8.8 → 0.8.10

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.
@@ -13,64 +13,64 @@ declare const buildStepDefinitionsClient: (stepDefinitions: StepDefinitions) =>
13
13
  projectId: string;
14
14
  key: string;
15
15
  name: string;
16
- description: string | unknown;
17
- prompt: string | unknown;
16
+ description: string | null;
17
+ prompt: string | null;
18
18
  version: number;
19
19
  kind: "built_in" | "user_defined" | "code";
20
20
  entrypointJson: {
21
21
  sourceFile: string;
22
- } | unknown;
22
+ } | null;
23
23
  executionMode: "workspace" | "no_workspace";
24
24
  inputSchemaJson: {
25
25
  [key: string]: unknown;
26
26
  };
27
27
  resultSchemaJson: {
28
28
  [key: string]: unknown;
29
- } | unknown;
29
+ } | null;
30
30
  errors: Array<string>;
31
31
  retry: Array<{
32
32
  on: Array<string>;
33
33
  maxAttempts: number;
34
34
  }>;
35
35
  grants: Array<{
36
- resource: string;
37
- action: string;
36
+ resource: "workItem";
37
+ action: "read";
38
38
  scope: "self" | "children" | "project";
39
39
  } | {
40
- resource: string;
41
- action: string;
40
+ resource: "workItem";
41
+ action: "update";
42
42
  scope: "self" | "children";
43
43
  } | {
44
- resource: string;
45
- action: string;
44
+ resource: "workItem";
45
+ action: "comment";
46
46
  scope: "self" | "children";
47
47
  } | {
48
- resource: string;
49
- action: string;
48
+ resource: "workItem";
49
+ action: "label";
50
50
  scope: "self" | "children";
51
51
  labels: Array<string>;
52
52
  } | {
53
- resource: string;
54
- action: string;
53
+ resource: "workItem";
54
+ action: "block";
55
55
  scope: "self" | "children";
56
56
  } | {
57
- resource: string;
58
- action: string;
57
+ resource: "workItem";
58
+ action: "close";
59
59
  scope: "self" | "children";
60
60
  } | {
61
- resource: string;
62
- action: string;
63
- scope: string;
61
+ resource: "workItem";
62
+ action: "create";
63
+ scope: "children";
64
64
  labels: Array<string>;
65
65
  }>;
66
- maxTurns: number | unknown;
66
+ maxTurns: number | null;
67
67
  concurrency: {
68
68
  max: number;
69
69
  waiting: number;
70
- } | unknown;
70
+ } | null;
71
71
  opencodeMcpJson: {
72
72
  [key: string]: {
73
- type: string;
73
+ type: "local";
74
74
  command: Array<string>;
75
75
  cwd?: string;
76
76
  environment?: {
@@ -85,7 +85,7 @@ declare const buildStepDefinitionsClient: (stepDefinitions: StepDefinitions) =>
85
85
  };
86
86
  protocol?: "legacy" | "auto" | "2026-07-28";
87
87
  } | {
88
- type: string;
88
+ type: "remote";
89
89
  url: string;
90
90
  headers?: {
91
91
  [key: string]: string;
@@ -97,7 +97,7 @@ declare const buildStepDefinitionsClient: (stepDefinitions: StepDefinitions) =>
97
97
  callback_port?: number;
98
98
  redirect_uri?: string;
99
99
  auth_server_metadata_url?: string;
100
- } | boolean;
100
+ } | false;
101
101
  disabled?: boolean;
102
102
  codemode?: boolean;
103
103
  timeout?: {
@@ -107,7 +107,7 @@ declare const buildStepDefinitionsClient: (stepDefinitions: StepDefinitions) =>
107
107
  };
108
108
  protocol?: "legacy" | "auto" | "2026-07-28";
109
109
  } | {
110
- type: string;
110
+ type: "ref";
111
111
  name?: string;
112
112
  disabled?: boolean;
113
113
  codemode?: boolean;
@@ -118,13 +118,13 @@ declare const buildStepDefinitionsClient: (stepDefinitions: StepDefinitions) =>
118
118
  };
119
119
  protocol?: "legacy" | "auto" | "2026-07-28";
120
120
  };
121
- } | unknown;
121
+ } | null;
122
122
  healthChecksJson: Array<{
123
123
  name?: string;
124
124
  severity: "required" | "warn";
125
125
  timeoutSeconds: number;
126
126
  serialGroup?: string;
127
- kind: string;
127
+ kind: "tool";
128
128
  tool: string;
129
129
  mcp?: string;
130
130
  args?: {
@@ -135,36 +135,38 @@ declare const buildStepDefinitionsClient: (stepDefinitions: StepDefinitions) =>
135
135
  severity: "required" | "warn";
136
136
  timeoutSeconds: number;
137
137
  serialGroup?: string;
138
- kind: string;
138
+ kind: "cli";
139
139
  command: Array<string>;
140
140
  expectExitCode: number;
141
- }> | unknown;
141
+ }> | null;
142
142
  envJson: Array<{
143
143
  name: string;
144
- source: string;
144
+ source: "value";
145
145
  value: string;
146
146
  secret: boolean;
147
147
  applies: "agent" | "setup" | "both";
148
148
  } | {
149
149
  name: string;
150
- source: string;
150
+ source: "inherit";
151
151
  from: string;
152
152
  secret: boolean;
153
153
  optional: boolean;
154
154
  default?: string;
155
155
  mcp?: string;
156
156
  applies: "agent" | "setup" | "both";
157
- }> | unknown;
158
- devcontainerConfigPath: string | unknown;
159
- managedRuntime: "bun1" | "node24" | unknown;
157
+ }> | null;
158
+ devcontainerConfigPath: string | null;
159
+ managedRuntime: "bun1" | "node24" | null;
160
160
  repo: {
161
- mode: string;
161
+ mode: "none";
162
162
  } | {
163
- mode: string;
163
+ mode: "readOnly";
164
+ gitCredentials: "auto" | "none";
164
165
  } | {
165
- mode: string;
166
- message: string | unknown;
166
+ mode: "readWrite";
167
+ message: string | null;
167
168
  onPushFailure: "fail" | "warn";
169
+ gitCredentials: "auto" | "none";
168
170
  };
169
171
  status: "draft" | "active" | "archived";
170
172
  createdAt: string;
@@ -175,64 +177,64 @@ declare const buildStepDefinitionsClient: (stepDefinitions: StepDefinitions) =>
175
177
  projectId: string;
176
178
  key: string;
177
179
  name: string;
178
- description: string | unknown;
179
- prompt: string | unknown;
180
+ description: string | null;
181
+ prompt: string | null;
180
182
  version: number;
181
183
  kind: "built_in" | "user_defined" | "code";
182
184
  entrypointJson: {
183
185
  sourceFile: string;
184
- } | unknown;
186
+ } | null;
185
187
  executionMode: "workspace" | "no_workspace";
186
188
  inputSchemaJson: {
187
189
  [key: string]: unknown;
188
190
  };
189
191
  resultSchemaJson: {
190
192
  [key: string]: unknown;
191
- } | unknown;
193
+ } | null;
192
194
  errors: Array<string>;
193
195
  retry: Array<{
194
196
  on: Array<string>;
195
197
  maxAttempts: number;
196
198
  }>;
197
199
  grants: Array<{
198
- resource: string;
199
- action: string;
200
+ resource: "workItem";
201
+ action: "read";
200
202
  scope: "self" | "children" | "project";
201
203
  } | {
202
- resource: string;
203
- action: string;
204
+ resource: "workItem";
205
+ action: "update";
204
206
  scope: "self" | "children";
205
207
  } | {
206
- resource: string;
207
- action: string;
208
+ resource: "workItem";
209
+ action: "comment";
208
210
  scope: "self" | "children";
209
211
  } | {
210
- resource: string;
211
- action: string;
212
+ resource: "workItem";
213
+ action: "label";
212
214
  scope: "self" | "children";
213
215
  labels: Array<string>;
214
216
  } | {
215
- resource: string;
216
- action: string;
217
+ resource: "workItem";
218
+ action: "block";
217
219
  scope: "self" | "children";
218
220
  } | {
219
- resource: string;
220
- action: string;
221
+ resource: "workItem";
222
+ action: "close";
221
223
  scope: "self" | "children";
222
224
  } | {
223
- resource: string;
224
- action: string;
225
- scope: string;
225
+ resource: "workItem";
226
+ action: "create";
227
+ scope: "children";
226
228
  labels: Array<string>;
227
229
  }>;
228
- maxTurns: number | unknown;
230
+ maxTurns: number | null;
229
231
  concurrency: {
230
232
  max: number;
231
233
  waiting: number;
232
- } | unknown;
234
+ } | null;
233
235
  opencodeMcpJson: {
234
236
  [key: string]: {
235
- type: string;
237
+ type: "local";
236
238
  command: Array<string>;
237
239
  cwd?: string;
238
240
  environment?: {
@@ -247,7 +249,7 @@ declare const buildStepDefinitionsClient: (stepDefinitions: StepDefinitions) =>
247
249
  };
248
250
  protocol?: "legacy" | "auto" | "2026-07-28";
249
251
  } | {
250
- type: string;
252
+ type: "remote";
251
253
  url: string;
252
254
  headers?: {
253
255
  [key: string]: string;
@@ -259,7 +261,7 @@ declare const buildStepDefinitionsClient: (stepDefinitions: StepDefinitions) =>
259
261
  callback_port?: number;
260
262
  redirect_uri?: string;
261
263
  auth_server_metadata_url?: string;
262
- } | boolean;
264
+ } | false;
263
265
  disabled?: boolean;
264
266
  codemode?: boolean;
265
267
  timeout?: {
@@ -269,7 +271,7 @@ declare const buildStepDefinitionsClient: (stepDefinitions: StepDefinitions) =>
269
271
  };
270
272
  protocol?: "legacy" | "auto" | "2026-07-28";
271
273
  } | {
272
- type: string;
274
+ type: "ref";
273
275
  name?: string;
274
276
  disabled?: boolean;
275
277
  codemode?: boolean;
@@ -280,13 +282,13 @@ declare const buildStepDefinitionsClient: (stepDefinitions: StepDefinitions) =>
280
282
  };
281
283
  protocol?: "legacy" | "auto" | "2026-07-28";
282
284
  };
283
- } | unknown;
285
+ } | null;
284
286
  healthChecksJson: Array<{
285
287
  name?: string;
286
288
  severity: "required" | "warn";
287
289
  timeoutSeconds: number;
288
290
  serialGroup?: string;
289
- kind: string;
291
+ kind: "tool";
290
292
  tool: string;
291
293
  mcp?: string;
292
294
  args?: {
@@ -297,36 +299,38 @@ declare const buildStepDefinitionsClient: (stepDefinitions: StepDefinitions) =>
297
299
  severity: "required" | "warn";
298
300
  timeoutSeconds: number;
299
301
  serialGroup?: string;
300
- kind: string;
302
+ kind: "cli";
301
303
  command: Array<string>;
302
304
  expectExitCode: number;
303
- }> | unknown;
305
+ }> | null;
304
306
  envJson: Array<{
305
307
  name: string;
306
- source: string;
308
+ source: "value";
307
309
  value: string;
308
310
  secret: boolean;
309
311
  applies: "agent" | "setup" | "both";
310
312
  } | {
311
313
  name: string;
312
- source: string;
314
+ source: "inherit";
313
315
  from: string;
314
316
  secret: boolean;
315
317
  optional: boolean;
316
318
  default?: string;
317
319
  mcp?: string;
318
320
  applies: "agent" | "setup" | "both";
319
- }> | unknown;
320
- devcontainerConfigPath: string | unknown;
321
- managedRuntime: "bun1" | "node24" | unknown;
321
+ }> | null;
322
+ devcontainerConfigPath: string | null;
323
+ managedRuntime: "bun1" | "node24" | null;
322
324
  repo: {
323
- mode: string;
325
+ mode: "none";
324
326
  } | {
325
- mode: string;
327
+ mode: "readOnly";
328
+ gitCredentials: "auto" | "none";
326
329
  } | {
327
- mode: string;
328
- message: string | unknown;
330
+ mode: "readWrite";
331
+ message: string | null;
329
332
  onPushFailure: "fail" | "warn";
333
+ gitCredentials: "auto" | "none";
330
334
  };
331
335
  status: "draft" | "active" | "archived";
332
336
  createdAt: string;
@@ -347,64 +351,64 @@ declare const buildStepDefinitionsClient: (stepDefinitions: StepDefinitions) =>
347
351
  projectId: string;
348
352
  key: string;
349
353
  name: string;
350
- description: string | unknown;
351
- prompt: string | unknown;
354
+ description: string | null;
355
+ prompt: string | null;
352
356
  version: number;
353
357
  kind: "built_in" | "user_defined" | "code";
354
358
  entrypointJson: {
355
359
  sourceFile: string;
356
- } | unknown;
360
+ } | null;
357
361
  executionMode: "workspace" | "no_workspace";
358
362
  inputSchemaJson: {
359
363
  [key: string]: unknown;
360
364
  };
361
365
  resultSchemaJson: {
362
366
  [key: string]: unknown;
363
- } | unknown;
367
+ } | null;
364
368
  errors: Array<string>;
365
369
  retry: Array<{
366
370
  on: Array<string>;
367
371
  maxAttempts: number;
368
372
  }>;
369
373
  grants: Array<{
370
- resource: string;
371
- action: string;
374
+ resource: "workItem";
375
+ action: "read";
372
376
  scope: "self" | "children" | "project";
373
377
  } | {
374
- resource: string;
375
- action: string;
378
+ resource: "workItem";
379
+ action: "update";
376
380
  scope: "self" | "children";
377
381
  } | {
378
- resource: string;
379
- action: string;
382
+ resource: "workItem";
383
+ action: "comment";
380
384
  scope: "self" | "children";
381
385
  } | {
382
- resource: string;
383
- action: string;
386
+ resource: "workItem";
387
+ action: "label";
384
388
  scope: "self" | "children";
385
389
  labels: Array<string>;
386
390
  } | {
387
- resource: string;
388
- action: string;
391
+ resource: "workItem";
392
+ action: "block";
389
393
  scope: "self" | "children";
390
394
  } | {
391
- resource: string;
392
- action: string;
395
+ resource: "workItem";
396
+ action: "close";
393
397
  scope: "self" | "children";
394
398
  } | {
395
- resource: string;
396
- action: string;
397
- scope: string;
399
+ resource: "workItem";
400
+ action: "create";
401
+ scope: "children";
398
402
  labels: Array<string>;
399
403
  }>;
400
- maxTurns: number | unknown;
404
+ maxTurns: number | null;
401
405
  concurrency: {
402
406
  max: number;
403
407
  waiting: number;
404
- } | unknown;
408
+ } | null;
405
409
  opencodeMcpJson: {
406
410
  [key: string]: {
407
- type: string;
411
+ type: "local";
408
412
  command: Array<string>;
409
413
  cwd?: string;
410
414
  environment?: {
@@ -419,7 +423,7 @@ declare const buildStepDefinitionsClient: (stepDefinitions: StepDefinitions) =>
419
423
  };
420
424
  protocol?: "legacy" | "auto" | "2026-07-28";
421
425
  } | {
422
- type: string;
426
+ type: "remote";
423
427
  url: string;
424
428
  headers?: {
425
429
  [key: string]: string;
@@ -431,7 +435,7 @@ declare const buildStepDefinitionsClient: (stepDefinitions: StepDefinitions) =>
431
435
  callback_port?: number;
432
436
  redirect_uri?: string;
433
437
  auth_server_metadata_url?: string;
434
- } | boolean;
438
+ } | false;
435
439
  disabled?: boolean;
436
440
  codemode?: boolean;
437
441
  timeout?: {
@@ -441,7 +445,7 @@ declare const buildStepDefinitionsClient: (stepDefinitions: StepDefinitions) =>
441
445
  };
442
446
  protocol?: "legacy" | "auto" | "2026-07-28";
443
447
  } | {
444
- type: string;
448
+ type: "ref";
445
449
  name?: string;
446
450
  disabled?: boolean;
447
451
  codemode?: boolean;
@@ -452,13 +456,13 @@ declare const buildStepDefinitionsClient: (stepDefinitions: StepDefinitions) =>
452
456
  };
453
457
  protocol?: "legacy" | "auto" | "2026-07-28";
454
458
  };
455
- } | unknown;
459
+ } | null;
456
460
  healthChecksJson: Array<{
457
461
  name?: string;
458
462
  severity: "required" | "warn";
459
463
  timeoutSeconds: number;
460
464
  serialGroup?: string;
461
- kind: string;
465
+ kind: "tool";
462
466
  tool: string;
463
467
  mcp?: string;
464
468
  args?: {
@@ -469,36 +473,38 @@ declare const buildStepDefinitionsClient: (stepDefinitions: StepDefinitions) =>
469
473
  severity: "required" | "warn";
470
474
  timeoutSeconds: number;
471
475
  serialGroup?: string;
472
- kind: string;
476
+ kind: "cli";
473
477
  command: Array<string>;
474
478
  expectExitCode: number;
475
- }> | unknown;
479
+ }> | null;
476
480
  envJson: Array<{
477
481
  name: string;
478
- source: string;
482
+ source: "value";
479
483
  value: string;
480
484
  secret: boolean;
481
485
  applies: "agent" | "setup" | "both";
482
486
  } | {
483
487
  name: string;
484
- source: string;
488
+ source: "inherit";
485
489
  from: string;
486
490
  secret: boolean;
487
491
  optional: boolean;
488
492
  default?: string;
489
493
  mcp?: string;
490
494
  applies: "agent" | "setup" | "both";
491
- }> | unknown;
492
- devcontainerConfigPath: string | unknown;
493
- managedRuntime: "bun1" | "node24" | unknown;
495
+ }> | null;
496
+ devcontainerConfigPath: string | null;
497
+ managedRuntime: "bun1" | "node24" | null;
494
498
  repo: {
495
- mode: string;
499
+ mode: "none";
496
500
  } | {
497
- mode: string;
501
+ mode: "readOnly";
502
+ gitCredentials: "auto" | "none";
498
503
  } | {
499
- mode: string;
500
- message: string | unknown;
504
+ mode: "readWrite";
505
+ message: string | null;
501
506
  onPushFailure: "fail" | "warn";
507
+ gitCredentials: "auto" | "none";
502
508
  };
503
509
  status: "draft" | "active" | "archived";
504
510
  createdAt: string;
@@ -3,11 +3,11 @@ import {
3
3
  assertValidDefinitionSpecs,
4
4
  listPaths,
5
5
  validateDefinitionSpecs
6
- } from "../../chunk-r01fsz58.js";
6
+ } from "../../chunk-1yb2h6t9.js";
7
7
  import"../../chunk-5zsavw98.js";
8
8
  import"../../chunk-4ggr8af6.js";
9
9
  import"../../chunk-k4y5qt4y.js";
10
- import"../../chunk-ejzfdm1z.js";
10
+ import"../../chunk-xzx08r6y.js";
11
11
  import"../../chunk-ngy1fdcx.js";
12
12
  import"../../chunk-y2pv8d6a.js";
13
13
  import"../../chunk-skzxcba3.js";