@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.
- package/dist/{chunk-r01fsz58.js → chunk-1yb2h6t9.js} +1 -1
- package/dist/{chunk-npy0jxfg.js → chunk-aqsa0bpk.js} +1 -1
- package/dist/{chunk-vmdn05vj.js → chunk-c3xzrd3w.js} +28 -1
- package/dist/{chunk-y2s9kpfp.js → chunk-d4e1kz6h.js} +16 -5
- package/dist/{chunk-qy3508g1.js → chunk-nxsa7ksc.js} +1 -1
- package/dist/{chunk-ejzfdm1z.js → chunk-xzx08r6y.js} +20 -7
- package/dist/{chunk-738k8p1c.js → chunk-zjp1c7ye.js} +8 -1
- package/dist/client.js +2 -2
- package/dist/contracts/automation-document/schema.d.ts +1 -1
- package/dist/defaults/index.js +2 -2
- package/dist/definitions/automations/automations-client.d.ts +13 -13
- package/dist/definitions/automations/index.js +2 -2
- package/dist/definitions/pipelines/index.js +2 -2
- package/dist/definitions/pipelines/pipeline-definitions-client.d.ts +10 -10
- package/dist/definitions/steps/index.js +3 -3
- package/dist/definitions/steps/repo.d.ts +15 -4
- package/dist/definitions/steps/step-definitions-client.d.ts +120 -114
- package/dist/definitions/validation/index.js +2 -2
- package/dist/generated/index.d.ts +1 -1
- package/dist/generated/sdk.gen.d.ts +10 -2
- package/dist/generated/types.gen.d.ts +1832 -1541
- package/dist/health-checks.d.ts +2 -2
- package/dist/index.js +5 -5
- package/dist/push/index.js +6 -6
- package/dist/repo-config.d.ts +37 -2
- package/dist/repo-config.js +3 -1
- package/dist/task-plane-client.d.ts +209 -100
- package/package.json +1 -1
package/dist/health-checks.d.ts
CHANGED
|
@@ -130,6 +130,7 @@ export type HealthChecksInput = HealthCheckInput[];
|
|
|
130
130
|
export declare const stepToolHealthCheckSchema: z.ZodObject<{
|
|
131
131
|
name: z.ZodOptional<z.ZodString>;
|
|
132
132
|
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
133
|
+
tool: z.ZodString;
|
|
133
134
|
kind: z.ZodDefault<z.ZodLiteral<"tool">>;
|
|
134
135
|
severity: z.ZodDefault<z.ZodEnum<{
|
|
135
136
|
required: "required";
|
|
@@ -137,12 +138,12 @@ export declare const stepToolHealthCheckSchema: z.ZodObject<{
|
|
|
137
138
|
}>>;
|
|
138
139
|
timeoutSeconds: z.ZodDefault<z.ZodNumber>;
|
|
139
140
|
serialGroup: z.ZodOptional<z.ZodString>;
|
|
140
|
-
tool: z.ZodString;
|
|
141
141
|
}, z.core.$strict>;
|
|
142
142
|
/** The value of `defineStep({ healthChecks })`: `cli` and non-MCP `tool` checks. */
|
|
143
143
|
export declare const stepHealthChecksInputSchema: z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
144
144
|
name: z.ZodOptional<z.ZodString>;
|
|
145
145
|
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
146
|
+
tool: z.ZodString;
|
|
146
147
|
kind: z.ZodDefault<z.ZodLiteral<"tool">>;
|
|
147
148
|
severity: z.ZodDefault<z.ZodEnum<{
|
|
148
149
|
required: "required";
|
|
@@ -150,7 +151,6 @@ export declare const stepHealthChecksInputSchema: z.ZodArray<z.ZodPreprocess<z.Z
|
|
|
150
151
|
}>>;
|
|
151
152
|
timeoutSeconds: z.ZodDefault<z.ZodNumber>;
|
|
152
153
|
serialGroup: z.ZodOptional<z.ZodString>;
|
|
153
|
-
tool: z.ZodString;
|
|
154
154
|
}, z.core.$strict>, z.ZodObject<{
|
|
155
155
|
name: z.ZodOptional<z.ZodString>;
|
|
156
156
|
severity: z.ZodDefault<z.ZodEnum<{
|
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-nxsa7ksc.js";
|
|
13
13
|
import {
|
|
14
14
|
after,
|
|
15
15
|
all,
|
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
import {
|
|
63
63
|
createScarnClient,
|
|
64
64
|
createTaskPlaneClient
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-zjp1c7ye.js";
|
|
66
66
|
import"./chunk-61jf8b6s.js";
|
|
67
67
|
import"./chunk-cnxaagfj.js";
|
|
68
68
|
import {
|
|
@@ -99,7 +99,7 @@ import {
|
|
|
99
99
|
resolveMcpChecks,
|
|
100
100
|
toStepHandle,
|
|
101
101
|
toStepSpec
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-d4e1kz6h.js";
|
|
103
103
|
import {
|
|
104
104
|
collectEnvPlaceholderNames,
|
|
105
105
|
isEnvPlaceholderValue,
|
|
@@ -123,7 +123,7 @@ import {
|
|
|
123
123
|
import"./chunk-5zsavw98.js";
|
|
124
124
|
import"./chunk-4ggr8af6.js";
|
|
125
125
|
import"./chunk-k4y5qt4y.js";
|
|
126
|
-
import"./chunk-
|
|
126
|
+
import"./chunk-xzx08r6y.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-c3xzrd3w.js";
|
|
153
153
|
import {
|
|
154
154
|
ARTIFACT_MARKER_SCHEME,
|
|
155
155
|
buildArtifactMarker,
|
package/dist/push/index.js
CHANGED
|
@@ -6,18 +6,18 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
AutomationsApiError,
|
|
8
8
|
createAutomationsClient
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-aqsa0bpk.js";
|
|
10
10
|
import {
|
|
11
11
|
assertValidDefinitionSpecs
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-1yb2h6t9.js";
|
|
13
13
|
import {
|
|
14
14
|
PipelineDefinitionsApiError,
|
|
15
15
|
createPipelineDefinitionsClient
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-nxsa7ksc.js";
|
|
17
17
|
import {
|
|
18
18
|
createStepDefinitionsClient,
|
|
19
19
|
toStepSpec
|
|
20
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-d4e1kz6h.js";
|
|
21
21
|
import"../chunk-e1h021kq.js";
|
|
22
22
|
import"../chunk-63f90zky.js";
|
|
23
23
|
import"../chunk-jj9pezwb.js";
|
|
@@ -25,8 +25,8 @@ import"../chunk-y11p1q7r.js";
|
|
|
25
25
|
import"../chunk-5zsavw98.js";
|
|
26
26
|
import"../chunk-4ggr8af6.js";
|
|
27
27
|
import"../chunk-k4y5qt4y.js";
|
|
28
|
-
import"../chunk-
|
|
29
|
-
import"../chunk-
|
|
28
|
+
import"../chunk-xzx08r6y.js";
|
|
29
|
+
import"../chunk-c3xzrd3w.js";
|
|
30
30
|
import"../chunk-ngy1fdcx.js";
|
|
31
31
|
import"../chunk-y2pv8d6a.js";
|
|
32
32
|
import"../chunk-01nfqm18.js";
|
package/dist/repo-config.d.ts
CHANGED
|
@@ -11,6 +11,10 @@ import { z } from "zod";
|
|
|
11
11
|
* `{{workItem.title}}` and `{{workItem.platformKey}}` tokens only) and
|
|
12
12
|
* `onPushFailure` picks whether a failed push fails the step.
|
|
13
13
|
*
|
|
14
|
+
* `readOnly` and `readWrite` also carry `gitCredentials` (`"auto"` or
|
|
15
|
+
* `"none"`): whether git inside the container gets credentials through the
|
|
16
|
+
* worker's credential relay when the worker offers one.
|
|
17
|
+
*
|
|
14
18
|
* Two shapes of the same data. `RepoConfigInput` is what an author or API client
|
|
15
19
|
* sends and may leave things out; `RepoConfig` is what is stored, returned and
|
|
16
20
|
* handed to the worker, fully resolved by `resolveRepoConfig`. A resolved
|
|
@@ -41,10 +45,28 @@ export type RepoExecutionMode = "workspace" | "no_workspace";
|
|
|
41
45
|
*/
|
|
42
46
|
export declare function findDisallowedCommitMessageTokenRoots(message: string): string[];
|
|
43
47
|
export declare const repoCommitMessageSchema: z.ZodString;
|
|
48
|
+
/**
|
|
49
|
+
* Whether git inside the step's container gets credentials through the
|
|
50
|
+
* worker's per-run credential relay.
|
|
51
|
+
*
|
|
52
|
+
* - `auto` (the default): yes, when the worker has git credentials enabled.
|
|
53
|
+
* The credential is whatever the worker's source issues; with the worker
|
|
54
|
+
* host's own git it may be able to push, so this names no permission.
|
|
55
|
+
* - `none`: the container gets no git credentials from Scarn.
|
|
56
|
+
*/
|
|
57
|
+
export declare const repoGitCredentialsSchema: z.ZodEnum<{
|
|
58
|
+
auto: "auto";
|
|
59
|
+
none: "none";
|
|
60
|
+
}>;
|
|
61
|
+
export type RepoGitCredentials = z.output<typeof repoGitCredentialsSchema>;
|
|
44
62
|
export declare const repoConfigInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
45
63
|
mode: z.ZodLiteral<"none">;
|
|
46
64
|
}, z.core.$strict>, z.ZodObject<{
|
|
47
65
|
mode: z.ZodLiteral<"readOnly">;
|
|
66
|
+
gitCredentials: z.ZodOptional<z.ZodEnum<{
|
|
67
|
+
auto: "auto";
|
|
68
|
+
none: "none";
|
|
69
|
+
}>>;
|
|
48
70
|
}, z.core.$strict>, z.ZodObject<{
|
|
49
71
|
mode: z.ZodLiteral<"readWrite">;
|
|
50
72
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -52,11 +74,19 @@ export declare const repoConfigInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
52
74
|
warn: "warn";
|
|
53
75
|
fail: "fail";
|
|
54
76
|
}>>;
|
|
77
|
+
gitCredentials: z.ZodOptional<z.ZodEnum<{
|
|
78
|
+
auto: "auto";
|
|
79
|
+
none: "none";
|
|
80
|
+
}>>;
|
|
55
81
|
}, z.core.$strict>], "mode">;
|
|
56
82
|
export declare const repoConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
57
83
|
mode: z.ZodLiteral<"none">;
|
|
58
84
|
}, z.core.$strict>, z.ZodObject<{
|
|
59
85
|
mode: z.ZodLiteral<"readOnly">;
|
|
86
|
+
gitCredentials: z.ZodEnum<{
|
|
87
|
+
auto: "auto";
|
|
88
|
+
none: "none";
|
|
89
|
+
}>;
|
|
60
90
|
}, z.core.$strict>, z.ZodObject<{
|
|
61
91
|
mode: z.ZodLiteral<"readWrite">;
|
|
62
92
|
message: z.ZodNullable<z.ZodString>;
|
|
@@ -64,6 +94,10 @@ export declare const repoConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
64
94
|
warn: "warn";
|
|
65
95
|
fail: "fail";
|
|
66
96
|
}>;
|
|
97
|
+
gitCredentials: z.ZodEnum<{
|
|
98
|
+
auto: "auto";
|
|
99
|
+
none: "none";
|
|
100
|
+
}>;
|
|
67
101
|
}, z.core.$strict>], "mode">;
|
|
68
102
|
export type RepoConfigInput = z.input<typeof repoConfigInputSchema>;
|
|
69
103
|
export type RepoConfig = z.output<typeof repoConfigSchema>;
|
|
@@ -83,8 +117,9 @@ export declare function repoRuntimeMismatch(executionMode: RepoExecutionMode, mo
|
|
|
83
117
|
/**
|
|
84
118
|
* Fills what an author left out: an omitted `repo` becomes the runtime's default
|
|
85
119
|
* (`readWrite` for `workspace`, `none` for `no_workspace`), an omitted
|
|
86
|
-
* `onPushFailure` becomes `"fail"
|
|
87
|
-
* Does not check the runtime
|
|
120
|
+
* `onPushFailure` becomes `"fail"`, an omitted `message` becomes `null` and an
|
|
121
|
+
* omitted `gitCredentials` becomes `"auto"`. Does not check the runtime
|
|
122
|
+
* pairing; that is the caller's invariant.
|
|
88
123
|
*/
|
|
89
124
|
export declare function resolveRepoConfig(executionMode: RepoExecutionMode, input?: RepoConfigInput | null): RepoConfig;
|
|
90
125
|
export {};
|
package/dist/repo-config.js
CHANGED
|
@@ -9,9 +9,10 @@ import {
|
|
|
9
9
|
repoCommitMessageSchema,
|
|
10
10
|
repoConfigInputSchema,
|
|
11
11
|
repoConfigSchema,
|
|
12
|
+
repoGitCredentialsSchema,
|
|
12
13
|
repoRuntimeMismatch,
|
|
13
14
|
resolveRepoConfig
|
|
14
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-xzx08r6y.js";
|
|
15
16
|
import"./chunk-skzxcba3.js";
|
|
16
17
|
import"./chunk-y64skrwp.js";
|
|
17
18
|
export {
|
|
@@ -24,6 +25,7 @@ export {
|
|
|
24
25
|
repoCommitMessageSchema,
|
|
25
26
|
repoConfigInputSchema,
|
|
26
27
|
repoConfigSchema,
|
|
28
|
+
repoGitCredentialsSchema,
|
|
27
29
|
repoRuntimeMismatch,
|
|
28
30
|
resolveRepoConfig
|
|
29
31
|
};
|