@scarn/sdk 0.8.9 → 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,36 @@ 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
164
  gitCredentials: "auto" | "none";
165
165
  } | {
166
- mode: string;
167
- message: string | unknown;
166
+ mode: "readWrite";
167
+ message: string | null;
168
168
  onPushFailure: "fail" | "warn";
169
169
  gitCredentials: "auto" | "none";
170
170
  };
@@ -177,64 +177,64 @@ declare const buildStepDefinitionsClient: (stepDefinitions: StepDefinitions) =>
177
177
  projectId: string;
178
178
  key: string;
179
179
  name: string;
180
- description: string | unknown;
181
- prompt: string | unknown;
180
+ description: string | null;
181
+ prompt: string | null;
182
182
  version: number;
183
183
  kind: "built_in" | "user_defined" | "code";
184
184
  entrypointJson: {
185
185
  sourceFile: string;
186
- } | unknown;
186
+ } | null;
187
187
  executionMode: "workspace" | "no_workspace";
188
188
  inputSchemaJson: {
189
189
  [key: string]: unknown;
190
190
  };
191
191
  resultSchemaJson: {
192
192
  [key: string]: unknown;
193
- } | unknown;
193
+ } | null;
194
194
  errors: Array<string>;
195
195
  retry: Array<{
196
196
  on: Array<string>;
197
197
  maxAttempts: number;
198
198
  }>;
199
199
  grants: Array<{
200
- resource: string;
201
- action: string;
200
+ resource: "workItem";
201
+ action: "read";
202
202
  scope: "self" | "children" | "project";
203
203
  } | {
204
- resource: string;
205
- action: string;
204
+ resource: "workItem";
205
+ action: "update";
206
206
  scope: "self" | "children";
207
207
  } | {
208
- resource: string;
209
- action: string;
208
+ resource: "workItem";
209
+ action: "comment";
210
210
  scope: "self" | "children";
211
211
  } | {
212
- resource: string;
213
- action: string;
212
+ resource: "workItem";
213
+ action: "label";
214
214
  scope: "self" | "children";
215
215
  labels: Array<string>;
216
216
  } | {
217
- resource: string;
218
- action: string;
217
+ resource: "workItem";
218
+ action: "block";
219
219
  scope: "self" | "children";
220
220
  } | {
221
- resource: string;
222
- action: string;
221
+ resource: "workItem";
222
+ action: "close";
223
223
  scope: "self" | "children";
224
224
  } | {
225
- resource: string;
226
- action: string;
227
- scope: string;
225
+ resource: "workItem";
226
+ action: "create";
227
+ scope: "children";
228
228
  labels: Array<string>;
229
229
  }>;
230
- maxTurns: number | unknown;
230
+ maxTurns: number | null;
231
231
  concurrency: {
232
232
  max: number;
233
233
  waiting: number;
234
- } | unknown;
234
+ } | null;
235
235
  opencodeMcpJson: {
236
236
  [key: string]: {
237
- type: string;
237
+ type: "local";
238
238
  command: Array<string>;
239
239
  cwd?: string;
240
240
  environment?: {
@@ -249,7 +249,7 @@ declare const buildStepDefinitionsClient: (stepDefinitions: StepDefinitions) =>
249
249
  };
250
250
  protocol?: "legacy" | "auto" | "2026-07-28";
251
251
  } | {
252
- type: string;
252
+ type: "remote";
253
253
  url: string;
254
254
  headers?: {
255
255
  [key: string]: string;
@@ -261,7 +261,7 @@ declare const buildStepDefinitionsClient: (stepDefinitions: StepDefinitions) =>
261
261
  callback_port?: number;
262
262
  redirect_uri?: string;
263
263
  auth_server_metadata_url?: string;
264
- } | boolean;
264
+ } | false;
265
265
  disabled?: boolean;
266
266
  codemode?: boolean;
267
267
  timeout?: {
@@ -271,7 +271,7 @@ declare const buildStepDefinitionsClient: (stepDefinitions: StepDefinitions) =>
271
271
  };
272
272
  protocol?: "legacy" | "auto" | "2026-07-28";
273
273
  } | {
274
- type: string;
274
+ type: "ref";
275
275
  name?: string;
276
276
  disabled?: boolean;
277
277
  codemode?: boolean;
@@ -282,13 +282,13 @@ declare const buildStepDefinitionsClient: (stepDefinitions: StepDefinitions) =>
282
282
  };
283
283
  protocol?: "legacy" | "auto" | "2026-07-28";
284
284
  };
285
- } | unknown;
285
+ } | null;
286
286
  healthChecksJson: Array<{
287
287
  name?: string;
288
288
  severity: "required" | "warn";
289
289
  timeoutSeconds: number;
290
290
  serialGroup?: string;
291
- kind: string;
291
+ kind: "tool";
292
292
  tool: string;
293
293
  mcp?: string;
294
294
  args?: {
@@ -299,36 +299,36 @@ declare const buildStepDefinitionsClient: (stepDefinitions: StepDefinitions) =>
299
299
  severity: "required" | "warn";
300
300
  timeoutSeconds: number;
301
301
  serialGroup?: string;
302
- kind: string;
302
+ kind: "cli";
303
303
  command: Array<string>;
304
304
  expectExitCode: number;
305
- }> | unknown;
305
+ }> | null;
306
306
  envJson: Array<{
307
307
  name: string;
308
- source: string;
308
+ source: "value";
309
309
  value: string;
310
310
  secret: boolean;
311
311
  applies: "agent" | "setup" | "both";
312
312
  } | {
313
313
  name: string;
314
- source: string;
314
+ source: "inherit";
315
315
  from: string;
316
316
  secret: boolean;
317
317
  optional: boolean;
318
318
  default?: string;
319
319
  mcp?: string;
320
320
  applies: "agent" | "setup" | "both";
321
- }> | unknown;
322
- devcontainerConfigPath: string | unknown;
323
- managedRuntime: "bun1" | "node24" | unknown;
321
+ }> | null;
322
+ devcontainerConfigPath: string | null;
323
+ managedRuntime: "bun1" | "node24" | null;
324
324
  repo: {
325
- mode: string;
325
+ mode: "none";
326
326
  } | {
327
- mode: string;
327
+ mode: "readOnly";
328
328
  gitCredentials: "auto" | "none";
329
329
  } | {
330
- mode: string;
331
- message: string | unknown;
330
+ mode: "readWrite";
331
+ message: string | null;
332
332
  onPushFailure: "fail" | "warn";
333
333
  gitCredentials: "auto" | "none";
334
334
  };
@@ -351,64 +351,64 @@ declare const buildStepDefinitionsClient: (stepDefinitions: StepDefinitions) =>
351
351
  projectId: string;
352
352
  key: string;
353
353
  name: string;
354
- description: string | unknown;
355
- prompt: string | unknown;
354
+ description: string | null;
355
+ prompt: string | null;
356
356
  version: number;
357
357
  kind: "built_in" | "user_defined" | "code";
358
358
  entrypointJson: {
359
359
  sourceFile: string;
360
- } | unknown;
360
+ } | null;
361
361
  executionMode: "workspace" | "no_workspace";
362
362
  inputSchemaJson: {
363
363
  [key: string]: unknown;
364
364
  };
365
365
  resultSchemaJson: {
366
366
  [key: string]: unknown;
367
- } | unknown;
367
+ } | null;
368
368
  errors: Array<string>;
369
369
  retry: Array<{
370
370
  on: Array<string>;
371
371
  maxAttempts: number;
372
372
  }>;
373
373
  grants: Array<{
374
- resource: string;
375
- action: string;
374
+ resource: "workItem";
375
+ action: "read";
376
376
  scope: "self" | "children" | "project";
377
377
  } | {
378
- resource: string;
379
- action: string;
378
+ resource: "workItem";
379
+ action: "update";
380
380
  scope: "self" | "children";
381
381
  } | {
382
- resource: string;
383
- action: string;
382
+ resource: "workItem";
383
+ action: "comment";
384
384
  scope: "self" | "children";
385
385
  } | {
386
- resource: string;
387
- action: string;
386
+ resource: "workItem";
387
+ action: "label";
388
388
  scope: "self" | "children";
389
389
  labels: Array<string>;
390
390
  } | {
391
- resource: string;
392
- action: string;
391
+ resource: "workItem";
392
+ action: "block";
393
393
  scope: "self" | "children";
394
394
  } | {
395
- resource: string;
396
- action: string;
395
+ resource: "workItem";
396
+ action: "close";
397
397
  scope: "self" | "children";
398
398
  } | {
399
- resource: string;
400
- action: string;
401
- scope: string;
399
+ resource: "workItem";
400
+ action: "create";
401
+ scope: "children";
402
402
  labels: Array<string>;
403
403
  }>;
404
- maxTurns: number | unknown;
404
+ maxTurns: number | null;
405
405
  concurrency: {
406
406
  max: number;
407
407
  waiting: number;
408
- } | unknown;
408
+ } | null;
409
409
  opencodeMcpJson: {
410
410
  [key: string]: {
411
- type: string;
411
+ type: "local";
412
412
  command: Array<string>;
413
413
  cwd?: string;
414
414
  environment?: {
@@ -423,7 +423,7 @@ declare const buildStepDefinitionsClient: (stepDefinitions: StepDefinitions) =>
423
423
  };
424
424
  protocol?: "legacy" | "auto" | "2026-07-28";
425
425
  } | {
426
- type: string;
426
+ type: "remote";
427
427
  url: string;
428
428
  headers?: {
429
429
  [key: string]: string;
@@ -435,7 +435,7 @@ declare const buildStepDefinitionsClient: (stepDefinitions: StepDefinitions) =>
435
435
  callback_port?: number;
436
436
  redirect_uri?: string;
437
437
  auth_server_metadata_url?: string;
438
- } | boolean;
438
+ } | false;
439
439
  disabled?: boolean;
440
440
  codemode?: boolean;
441
441
  timeout?: {
@@ -445,7 +445,7 @@ declare const buildStepDefinitionsClient: (stepDefinitions: StepDefinitions) =>
445
445
  };
446
446
  protocol?: "legacy" | "auto" | "2026-07-28";
447
447
  } | {
448
- type: string;
448
+ type: "ref";
449
449
  name?: string;
450
450
  disabled?: boolean;
451
451
  codemode?: boolean;
@@ -456,13 +456,13 @@ declare const buildStepDefinitionsClient: (stepDefinitions: StepDefinitions) =>
456
456
  };
457
457
  protocol?: "legacy" | "auto" | "2026-07-28";
458
458
  };
459
- } | unknown;
459
+ } | null;
460
460
  healthChecksJson: Array<{
461
461
  name?: string;
462
462
  severity: "required" | "warn";
463
463
  timeoutSeconds: number;
464
464
  serialGroup?: string;
465
- kind: string;
465
+ kind: "tool";
466
466
  tool: string;
467
467
  mcp?: string;
468
468
  args?: {
@@ -473,36 +473,36 @@ declare const buildStepDefinitionsClient: (stepDefinitions: StepDefinitions) =>
473
473
  severity: "required" | "warn";
474
474
  timeoutSeconds: number;
475
475
  serialGroup?: string;
476
- kind: string;
476
+ kind: "cli";
477
477
  command: Array<string>;
478
478
  expectExitCode: number;
479
- }> | unknown;
479
+ }> | null;
480
480
  envJson: Array<{
481
481
  name: string;
482
- source: string;
482
+ source: "value";
483
483
  value: string;
484
484
  secret: boolean;
485
485
  applies: "agent" | "setup" | "both";
486
486
  } | {
487
487
  name: string;
488
- source: string;
488
+ source: "inherit";
489
489
  from: string;
490
490
  secret: boolean;
491
491
  optional: boolean;
492
492
  default?: string;
493
493
  mcp?: string;
494
494
  applies: "agent" | "setup" | "both";
495
- }> | unknown;
496
- devcontainerConfigPath: string | unknown;
497
- managedRuntime: "bun1" | "node24" | unknown;
495
+ }> | null;
496
+ devcontainerConfigPath: string | null;
497
+ managedRuntime: "bun1" | "node24" | null;
498
498
  repo: {
499
- mode: string;
499
+ mode: "none";
500
500
  } | {
501
- mode: string;
501
+ mode: "readOnly";
502
502
  gitCredentials: "auto" | "none";
503
503
  } | {
504
- mode: string;
505
- message: string | unknown;
504
+ mode: "readWrite";
505
+ message: string | null;
506
506
  onPushFailure: "fail" | "warn";
507
507
  gitCredentials: "auto" | "none";
508
508
  };