pullfrog 0.1.71 → 0.1.73
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.mjs +29278 -14570
- package/dist/cliContract.d.ts +5 -0
- package/dist/configuration.d.ts +45 -0
- package/dist/index.js +216 -217
- package/dist/internal/index.d.ts +3 -0
- package/dist/internal.js +14278 -17
- package/dist/models.d.ts +24 -0
- package/dist/toolState.d.ts +0 -1
- package/dist/utils/buildPullfrogFooter.d.ts +0 -6
- package/dist/utils/oauthWriteback.d.ts +29 -0
- package/dist/utils/runContextData.d.ts +0 -10
- package/package.json +4 -2
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export type ConfigScope = "org" | "repo";
|
|
3
|
+
export type ConfigValue = string | number | boolean | null;
|
|
4
|
+
export interface ConfigField {
|
|
5
|
+
key: string;
|
|
6
|
+
field: string;
|
|
7
|
+
kind: "text" | "model" | "effort" | "boolean" | "toggle" | "permission" | "enum" | "usd" | "status" | "prompt";
|
|
8
|
+
description: string;
|
|
9
|
+
nullable?: boolean;
|
|
10
|
+
privileged?: boolean;
|
|
11
|
+
choices?: readonly string[];
|
|
12
|
+
min?: number;
|
|
13
|
+
max?: number;
|
|
14
|
+
}
|
|
15
|
+
export declare const repoConfigFields: ConfigField[];
|
|
16
|
+
export declare const orgConfigFields: ConfigField[];
|
|
17
|
+
export declare function configFields(scope: ConfigScope): ConfigField[];
|
|
18
|
+
export declare function configChoices(field: ConfigField): string;
|
|
19
|
+
export declare function configValueSchema(field: ConfigField): z.ZodType<ConfigValue, unknown, z.core.$ZodTypeInternals<ConfigValue, unknown>>;
|
|
20
|
+
export declare const configEntrySchema: z.ZodObject<{
|
|
21
|
+
key: z.ZodString;
|
|
22
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
23
|
+
source: z.ZodEnum<{
|
|
24
|
+
default: "default";
|
|
25
|
+
unavailable: "unavailable";
|
|
26
|
+
repo: "repo";
|
|
27
|
+
org: "org";
|
|
28
|
+
}>;
|
|
29
|
+
writable: z.ZodBoolean;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
export declare const configResponseSchema: z.ZodObject<{
|
|
32
|
+
target: z.ZodString;
|
|
33
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
34
|
+
key: z.ZodString;
|
|
35
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
36
|
+
source: z.ZodEnum<{
|
|
37
|
+
default: "default";
|
|
38
|
+
unavailable: "unavailable";
|
|
39
|
+
repo: "repo";
|
|
40
|
+
org: "org";
|
|
41
|
+
}>;
|
|
42
|
+
writable: z.ZodBoolean;
|
|
43
|
+
}, z.core.$strip>>;
|
|
44
|
+
warnings: z.ZodArray<z.ZodString>;
|
|
45
|
+
}, z.core.$strip>;
|