agent-contracts 0.11.1 → 0.11.2
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/cli.js +5 -4
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +12 -9
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -97,29 +97,31 @@ type Artifact = z.infer<typeof ArtifactSchema>;
|
|
|
97
97
|
declare const MatcherSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
98
98
|
type: z.ZodLiteral<"command_regex">;
|
|
99
99
|
pattern: z.ZodString;
|
|
100
|
-
}, z.core.$
|
|
100
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
101
101
|
type: z.ZodLiteral<"content_regex">;
|
|
102
102
|
pattern: z.ZodString;
|
|
103
103
|
file_glob: z.ZodOptional<z.ZodString>;
|
|
104
104
|
exclude_glob: z.ZodOptional<z.ZodString>;
|
|
105
|
-
}, z.core.$
|
|
105
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
106
106
|
type: z.ZodLiteral<"file_glob">;
|
|
107
107
|
pattern: z.ZodString;
|
|
108
|
-
|
|
108
|
+
exclude_glob: z.ZodOptional<z.ZodString>;
|
|
109
|
+
}, z.core.$loose>], "type">;
|
|
109
110
|
type Matcher = z.infer<typeof MatcherSchema>;
|
|
110
111
|
declare const CheckSchema: z.ZodObject<{
|
|
111
112
|
matcher: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
112
113
|
type: z.ZodLiteral<"command_regex">;
|
|
113
114
|
pattern: z.ZodString;
|
|
114
|
-
}, z.core.$
|
|
115
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
115
116
|
type: z.ZodLiteral<"content_regex">;
|
|
116
117
|
pattern: z.ZodString;
|
|
117
118
|
file_glob: z.ZodOptional<z.ZodString>;
|
|
118
119
|
exclude_glob: z.ZodOptional<z.ZodString>;
|
|
119
|
-
}, z.core.$
|
|
120
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
120
121
|
type: z.ZodLiteral<"file_glob">;
|
|
121
122
|
pattern: z.ZodString;
|
|
122
|
-
|
|
123
|
+
exclude_glob: z.ZodOptional<z.ZodString>;
|
|
124
|
+
}, z.core.$loose>], "type">>;
|
|
123
125
|
script: z.ZodOptional<z.ZodString>;
|
|
124
126
|
message: z.ZodOptional<z.ZodString>;
|
|
125
127
|
}, z.core.$loose>;
|
|
@@ -151,15 +153,16 @@ declare const SoftwareBindingSchema: z.ZodObject<{
|
|
|
151
153
|
matcher: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
152
154
|
type: z.ZodLiteral<"command_regex">;
|
|
153
155
|
pattern: z.ZodString;
|
|
154
|
-
}, z.core.$
|
|
156
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
155
157
|
type: z.ZodLiteral<"content_regex">;
|
|
156
158
|
pattern: z.ZodString;
|
|
157
159
|
file_glob: z.ZodOptional<z.ZodString>;
|
|
158
160
|
exclude_glob: z.ZodOptional<z.ZodString>;
|
|
159
|
-
}, z.core.$
|
|
161
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
160
162
|
type: z.ZodLiteral<"file_glob">;
|
|
161
163
|
pattern: z.ZodString;
|
|
162
|
-
|
|
164
|
+
exclude_glob: z.ZodOptional<z.ZodString>;
|
|
165
|
+
}, z.core.$loose>], "type">>;
|
|
163
166
|
script: z.ZodOptional<z.ZodString>;
|
|
164
167
|
message: z.ZodOptional<z.ZodString>;
|
|
165
168
|
}, z.core.$loose>>;
|
package/dist/index.js
CHANGED
|
@@ -50485,17 +50485,18 @@ import { z as z3 } from "zod";
|
|
|
50485
50485
|
var CommandRegexMatcherSchema = z3.object({
|
|
50486
50486
|
type: z3.literal("command_regex"),
|
|
50487
50487
|
pattern: z3.string()
|
|
50488
|
-
});
|
|
50488
|
+
}).passthrough();
|
|
50489
50489
|
var ContentRegexMatcherSchema = z3.object({
|
|
50490
50490
|
type: z3.literal("content_regex"),
|
|
50491
50491
|
pattern: z3.string(),
|
|
50492
50492
|
file_glob: z3.string().optional(),
|
|
50493
50493
|
exclude_glob: z3.string().optional()
|
|
50494
|
-
});
|
|
50494
|
+
}).passthrough();
|
|
50495
50495
|
var FileGlobMatcherSchema = z3.object({
|
|
50496
50496
|
type: z3.literal("file_glob"),
|
|
50497
|
-
pattern: z3.string()
|
|
50498
|
-
|
|
50497
|
+
pattern: z3.string(),
|
|
50498
|
+
exclude_glob: z3.string().optional()
|
|
50499
|
+
}).passthrough();
|
|
50499
50500
|
var MatcherSchema = z3.discriminatedUnion("type", [
|
|
50500
50501
|
CommandRegexMatcherSchema,
|
|
50501
50502
|
ContentRegexMatcherSchema,
|