@scarn/sdk 0.8.14 → 0.8.17
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 +4 -4
- package/dist/{chunk-4ggr8af6.js → chunk-098740f7.js} +1 -1
- package/dist/{chunk-y2pv8d6a.js → chunk-19brnwkp.js} +1 -1
- package/dist/{chunk-8jfqd6m3.js → chunk-1wnv6rb2.js} +2 -2
- package/dist/{chunk-5zsavw98.js → chunk-2ekz6tr5.js} +1 -1
- package/dist/{chunk-xzx08r6y.js → chunk-2sk92cnd.js} +1 -1
- package/dist/{chunk-k4y5qt4y.js → chunk-46wmsgv7.js} +1 -1
- package/dist/{chunk-11hbmexe.js → chunk-9we3vqsv.js} +1 -1
- package/dist/{chunk-tpe834e0.js → chunk-a04phj60.js} +56 -16
- package/dist/{chunk-43y7tfn4.js → chunk-aknfw08j.js} +1 -1
- package/dist/{chunk-e1h021kq.js → chunk-cdj0yqgs.js} +1 -1
- package/dist/{chunk-jjxbkv7z.js → chunk-dhqeg0wf.js} +2 -2
- package/dist/{chunk-cnxaagfj.js → chunk-evb3hw48.js} +1 -1
- package/dist/{chunk-1yb2h6t9.js → chunk-g2mzg278.js} +5 -5
- package/dist/{chunk-76d1bwwz.js → chunk-p1fs73bd.js} +2 -2
- package/dist/{chunk-qq5mk270.js → chunk-qs7p11rp.js} +17 -1
- package/dist/{chunk-qesxv9gj.js → chunk-r03knh9j.js} +17 -11
- package/dist/{chunk-63f90zky.js → chunk-y34zsgsw.js} +1 -1
- package/dist/{chunk-skzxcba3.js → chunk-yf15kdte.js} +7087 -1944
- package/dist/client.js +2 -2
- package/dist/contracts/artifacts.js +2 -2
- package/dist/contracts/automation-document/index.js +3 -3
- package/dist/contracts/pipeline-document/index.js +2 -2
- package/dist/contracts/pipeline-document/schema.d.ts +10 -10
- package/dist/contracts/step-artifact-submissions.js +2 -2
- package/dist/contracts/work-item-changes.js +1 -1
- package/dist/defaults/index.d.ts +1 -1
- package/dist/defaults/index.js +3 -2
- package/dist/definitions/automations/index.js +3 -3
- package/dist/definitions/pipelines/index.js +3 -3
- package/dist/definitions/steps/index.js +10 -10
- package/dist/definitions/validation/index.js +7 -7
- package/dist/devcontainer-config-path.js +2 -2
- package/dist/env-vars.js +2 -2
- package/dist/generated/index.d.ts +1 -1
- package/dist/generated/sdk.gen.d.ts +22 -11
- package/dist/generated/types.gen.d.ts +737 -165
- package/dist/health-checks.d.ts +3 -3
- package/dist/health-checks.js +2 -2
- package/dist/index.js +16 -16
- package/dist/managed-runtimes.js +2 -2
- package/dist/opencode-mcp.js +2 -2
- package/dist/pipelines/index.js +3 -3
- package/dist/push/index.js +13 -13
- package/dist/repo-config.js +2 -2
- package/dist/task-plane-client.d.ts +22 -0
- package/package.json +1 -1
package/dist/health-checks.d.ts
CHANGED
|
@@ -70,7 +70,7 @@ export declare const healthCheckSchema: z.ZodPreprocess<z.ZodDiscriminatedUnion<
|
|
|
70
70
|
kind: z.ZodLiteral<"cli">;
|
|
71
71
|
command: z.ZodArray<z.ZodString>;
|
|
72
72
|
expectExitCode: z.ZodDefault<z.ZodInt>;
|
|
73
|
-
}, z.core.$strict>], "kind"
|
|
73
|
+
}, z.core.$strict>], "kind">, unknown>;
|
|
74
74
|
/**
|
|
75
75
|
* The full value of a step's `healthChecks` field.
|
|
76
76
|
*/
|
|
@@ -97,7 +97,7 @@ export declare const healthChecksSchema: z.ZodArray<z.ZodPreprocess<z.ZodDiscrim
|
|
|
97
97
|
kind: z.ZodLiteral<"cli">;
|
|
98
98
|
command: z.ZodArray<z.ZodString>;
|
|
99
99
|
expectExitCode: z.ZodDefault<z.ZodInt>;
|
|
100
|
-
}, z.core.$strict>], "kind"
|
|
100
|
+
}, z.core.$strict>], "kind">, unknown>>;
|
|
101
101
|
export type ToolHealthCheck = z.infer<typeof toolHealthCheckSchema>;
|
|
102
102
|
export type CliHealthCheck = z.infer<typeof cliHealthCheckSchema>;
|
|
103
103
|
export type HealthCheck = z.infer<typeof healthCheckSchema>;
|
|
@@ -162,7 +162,7 @@ export declare const stepHealthChecksInputSchema: z.ZodArray<z.ZodPreprocess<z.Z
|
|
|
162
162
|
kind: z.ZodLiteral<"cli">;
|
|
163
163
|
command: z.ZodArray<z.ZodString>;
|
|
164
164
|
expectExitCode: z.ZodDefault<z.ZodInt>;
|
|
165
|
-
}, z.core.$strict>], "kind"
|
|
165
|
+
}, z.core.$strict>], "kind">, unknown>>;
|
|
166
166
|
/** The pre-parse authoring shape of one `defineStep({ healthChecks })` entry. */
|
|
167
167
|
export type StepHealthCheckInput = z.input<typeof stepToolHealthCheckSchema> | z.input<typeof cliHealthCheckSchema>;
|
|
168
168
|
/** The pre-parse authoring shape of `defineStep({ healthChecks })`. */
|
package/dist/health-checks.js
CHANGED
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
stepHealthChecksInputSchema,
|
|
8
8
|
stepToolHealthCheckSchema,
|
|
9
9
|
toolHealthCheckSchema
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import"./chunk-
|
|
10
|
+
} from "./chunk-y34zsgsw.js";
|
|
11
|
+
import"./chunk-yf15kdte.js";
|
|
12
12
|
import"./chunk-y64skrwp.js";
|
|
13
13
|
export {
|
|
14
14
|
cliHealthCheckSchema,
|
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-
|
|
12
|
+
} from "./chunk-1wnv6rb2.js";
|
|
13
13
|
import {
|
|
14
14
|
after,
|
|
15
15
|
all,
|
|
@@ -45,15 +45,15 @@ import {
|
|
|
45
45
|
sum,
|
|
46
46
|
workItem,
|
|
47
47
|
workItemField
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-aknfw08j.js";
|
|
49
49
|
import {
|
|
50
50
|
attach,
|
|
51
51
|
defineAutomation,
|
|
52
52
|
onEvent,
|
|
53
53
|
skip
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-9we3vqsv.js";
|
|
55
55
|
import"./chunk-x0hjhqrf.js";
|
|
56
|
-
import"./chunk-
|
|
56
|
+
import"./chunk-p1fs73bd.js";
|
|
57
57
|
import {
|
|
58
58
|
parseJsonc,
|
|
59
59
|
stripJsoncComments,
|
|
@@ -62,9 +62,9 @@ import {
|
|
|
62
62
|
import {
|
|
63
63
|
createScarnClient,
|
|
64
64
|
createTaskPlaneClient
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-qs7p11rp.js";
|
|
66
66
|
import"./chunk-61jf8b6s.js";
|
|
67
|
-
import"./chunk-
|
|
67
|
+
import"./chunk-evb3hw48.js";
|
|
68
68
|
import {
|
|
69
69
|
ARTIFACT_BRAND,
|
|
70
70
|
Artifact,
|
|
@@ -99,7 +99,7 @@ import {
|
|
|
99
99
|
resolveMcpChecks,
|
|
100
100
|
toStepHandle,
|
|
101
101
|
toStepSpec
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-a04phj60.js";
|
|
103
103
|
import {
|
|
104
104
|
collectEnvPlaceholderNames,
|
|
105
105
|
isEnvPlaceholderValue,
|
|
@@ -113,17 +113,17 @@ import {
|
|
|
113
113
|
openCodeMcpTimeoutSchema,
|
|
114
114
|
openCodeResolvedMcpServerConfigSchema,
|
|
115
115
|
openCodeResolvedMcpServersSchema
|
|
116
|
-
} from "./chunk-
|
|
117
|
-
import"./chunk-
|
|
116
|
+
} from "./chunk-cdj0yqgs.js";
|
|
117
|
+
import"./chunk-y34zsgsw.js";
|
|
118
118
|
import"./chunk-jj9pezwb.js";
|
|
119
119
|
import {
|
|
120
120
|
PipelineBuildError,
|
|
121
121
|
formatIssue
|
|
122
122
|
} from "./chunk-y11p1q7r.js";
|
|
123
|
-
import"./chunk-
|
|
124
|
-
import"./chunk-
|
|
125
|
-
import"./chunk-
|
|
126
|
-
import"./chunk-
|
|
123
|
+
import"./chunk-2ekz6tr5.js";
|
|
124
|
+
import"./chunk-098740f7.js";
|
|
125
|
+
import"./chunk-46wmsgv7.js";
|
|
126
|
+
import"./chunk-2sk92cnd.js";
|
|
127
127
|
import {
|
|
128
128
|
Api,
|
|
129
129
|
Automations,
|
|
@@ -149,7 +149,7 @@ import {
|
|
|
149
149
|
WorkItemCommentDrafts,
|
|
150
150
|
WorkItemComments,
|
|
151
151
|
WorkItems
|
|
152
|
-
} from "./chunk-
|
|
152
|
+
} from "./chunk-r03knh9j.js";
|
|
153
153
|
import {
|
|
154
154
|
ARTIFACT_MARKER_SCHEME,
|
|
155
155
|
buildArtifactMarker,
|
|
@@ -168,9 +168,9 @@ import {
|
|
|
168
168
|
isEmbeddableArtifactExtension,
|
|
169
169
|
matchArtifactNode,
|
|
170
170
|
readArtifactKeyword
|
|
171
|
-
} from "./chunk-
|
|
171
|
+
} from "./chunk-19brnwkp.js";
|
|
172
172
|
import"./chunk-01nfqm18.js";
|
|
173
|
-
import"./chunk-
|
|
173
|
+
import"./chunk-yf15kdte.js";
|
|
174
174
|
import"./chunk-y64skrwp.js";
|
|
175
175
|
export {
|
|
176
176
|
ARTIFACT_BRAND,
|
package/dist/managed-runtimes.js
CHANGED
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
MANAGED_RUNTIME_IDS,
|
|
5
5
|
isManagedRuntimeId,
|
|
6
6
|
managedRuntimeIdSchema
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import"./chunk-
|
|
7
|
+
} from "./chunk-46wmsgv7.js";
|
|
8
|
+
import"./chunk-yf15kdte.js";
|
|
9
9
|
import"./chunk-y64skrwp.js";
|
|
10
10
|
export {
|
|
11
11
|
DEFAULT_CODE_STEP_RUNTIME_ID,
|
package/dist/opencode-mcp.js
CHANGED
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
openCodeMcpTimeoutSchema,
|
|
13
13
|
openCodeResolvedMcpServerConfigSchema,
|
|
14
14
|
openCodeResolvedMcpServersSchema
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import"./chunk-
|
|
15
|
+
} from "./chunk-cdj0yqgs.js";
|
|
16
|
+
import"./chunk-yf15kdte.js";
|
|
17
17
|
import"./chunk-y64skrwp.js";
|
|
18
18
|
export {
|
|
19
19
|
collectEnvPlaceholderNames,
|
package/dist/pipelines/index.js
CHANGED
|
@@ -34,17 +34,17 @@ import {
|
|
|
34
34
|
sum,
|
|
35
35
|
workItem,
|
|
36
36
|
workItemField
|
|
37
|
-
} from "../chunk-
|
|
37
|
+
} from "../chunk-aknfw08j.js";
|
|
38
38
|
import"../chunk-x0hjhqrf.js";
|
|
39
39
|
import"../chunk-61jf8b6s.js";
|
|
40
|
-
import"../chunk-
|
|
40
|
+
import"../chunk-evb3hw48.js";
|
|
41
41
|
import"../chunk-jj9pezwb.js";
|
|
42
42
|
import {
|
|
43
43
|
PipelineBuildError,
|
|
44
44
|
formatIssue
|
|
45
45
|
} from "../chunk-y11p1q7r.js";
|
|
46
46
|
import"../chunk-01nfqm18.js";
|
|
47
|
-
import"../chunk-
|
|
47
|
+
import"../chunk-yf15kdte.js";
|
|
48
48
|
import"../chunk-y64skrwp.js";
|
|
49
49
|
export {
|
|
50
50
|
PipelineBuildError,
|
package/dist/push/index.js
CHANGED
|
@@ -6,33 +6,33 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
AutomationsApiError,
|
|
8
8
|
createAutomationsClient
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-dhqeg0wf.js";
|
|
10
10
|
import {
|
|
11
11
|
assertValidDefinitionSpecs
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-g2mzg278.js";
|
|
13
13
|
import {
|
|
14
14
|
PipelineDefinitionsApiError,
|
|
15
15
|
createPipelineDefinitionsClient
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-1wnv6rb2.js";
|
|
17
17
|
import {
|
|
18
18
|
createStepDefinitionsClient,
|
|
19
19
|
toStepSpec
|
|
20
|
-
} from "../chunk-
|
|
21
|
-
import"../chunk-
|
|
22
|
-
import"../chunk-
|
|
20
|
+
} from "../chunk-a04phj60.js";
|
|
21
|
+
import"../chunk-cdj0yqgs.js";
|
|
22
|
+
import"../chunk-y34zsgsw.js";
|
|
23
23
|
import"../chunk-jj9pezwb.js";
|
|
24
24
|
import"../chunk-y11p1q7r.js";
|
|
25
|
-
import"../chunk-
|
|
26
|
-
import"../chunk-
|
|
27
|
-
import"../chunk-
|
|
28
|
-
import"../chunk-
|
|
29
|
-
import"../chunk-
|
|
25
|
+
import"../chunk-2ekz6tr5.js";
|
|
26
|
+
import"../chunk-098740f7.js";
|
|
27
|
+
import"../chunk-46wmsgv7.js";
|
|
28
|
+
import"../chunk-2sk92cnd.js";
|
|
29
|
+
import"../chunk-r03knh9j.js";
|
|
30
30
|
import"../chunk-ngy1fdcx.js";
|
|
31
|
-
import"../chunk-
|
|
31
|
+
import"../chunk-19brnwkp.js";
|
|
32
32
|
import"../chunk-01nfqm18.js";
|
|
33
33
|
import {
|
|
34
34
|
exports_external
|
|
35
|
-
} from "../chunk-
|
|
35
|
+
} from "../chunk-yf15kdte.js";
|
|
36
36
|
import"../chunk-y64skrwp.js";
|
|
37
37
|
|
|
38
38
|
// src/push/collect-definitions.ts
|
package/dist/repo-config.js
CHANGED
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
repoGitCredentialsSchema,
|
|
13
13
|
repoRuntimeMismatch,
|
|
14
14
|
resolveRepoConfig
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import"./chunk-
|
|
15
|
+
} from "./chunk-2sk92cnd.js";
|
|
16
|
+
import"./chunk-yf15kdte.js";
|
|
17
17
|
import"./chunk-y64skrwp.js";
|
|
18
18
|
export {
|
|
19
19
|
MAX_REPO_COMMIT_MESSAGE_LENGTH,
|
|
@@ -6,6 +6,13 @@ type TaskRunRef = {
|
|
|
6
6
|
type CompletionBody = PostApiTaskRunsByTaskRunIdCompletionsData["body"];
|
|
7
7
|
export type TaskPlaneClientOptions = {
|
|
8
8
|
headers?: Record<string, string> | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* Headers resolved per request and set over {@link headers}, for values
|
|
11
|
+
* that can change during the client's lifetime (e.g. a rotated token).
|
|
12
|
+
*/
|
|
13
|
+
requestHeaders?: (() => Promise<Record<string, string>> | Record<string, string>) | undefined;
|
|
14
|
+
/** Sees every response before it is parsed; throwing fails the call. */
|
|
15
|
+
onResponse?: ((response: Response) => Promise<void> | void) | undefined;
|
|
9
16
|
};
|
|
10
17
|
/**
|
|
11
18
|
* Worker-facing client for the task-run plane (`/api/task-runs/...`): claiming,
|
|
@@ -698,6 +705,21 @@ declare const buildTaskPlaneClient: (taskRuns: TaskRuns) => {
|
|
|
698
705
|
meta?: {
|
|
699
706
|
[key: string]: unknown;
|
|
700
707
|
};
|
|
708
|
+
} | {
|
|
709
|
+
type: string;
|
|
710
|
+
title: string;
|
|
711
|
+
status: number;
|
|
712
|
+
detail?: string;
|
|
713
|
+
instance?: string;
|
|
714
|
+
code?: string;
|
|
715
|
+
errors?: Array<{
|
|
716
|
+
path: string;
|
|
717
|
+
message: string;
|
|
718
|
+
summary?: string;
|
|
719
|
+
}>;
|
|
720
|
+
meta?: {
|
|
721
|
+
[key: string]: unknown;
|
|
722
|
+
};
|
|
701
723
|
};
|
|
702
724
|
}) & {
|
|
703
725
|
request: Request;
|