diff --git a/docs/classes/Api.html b/docs/classes/Api.html index 86f362e..f776997 100644 --- a/docs/classes/Api.html +++ b/docs/classes/Api.html @@ -1,4 +1,4 @@ -Api | gpt-programmer

Constructors

constructor +Api | gpt-programmer

Constructors

Properties

Accessors

Constructors

Properties

projectRoot: string = ...

Accessors

Generated using TypeDoc

\ No newline at end of file +

Constructors

Properties

projectRoot: string = ...

Accessors

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/classes/BaseAction.html b/docs/classes/BaseAction.html index 684784c..9ab48a4 100644 --- a/docs/classes/BaseAction.html +++ b/docs/classes/BaseAction.html @@ -1,4 +1,4 @@ -BaseAction | gpt-programmer

Class BaseAction<K>

Type Parameters

  • K = void

Hierarchy (view full)

Constructors

constructor +BaseAction | gpt-programmer

Class BaseAction<K>

Type Parameters

  • K = void

Hierarchy (view full)

Constructors

Properties

Constructors

Properties

action: ((content) => Promise<{
    data?: K;
    message: string;
}>)

Type declaration

    • (content): Promise<{
          data?: K;
          message: string;
      }>
    • Parameters

      • content: any

      Returns Promise<{
          data?: K;
          message: string;
      }>

client: OpenAI
context: string
contextId: string
history: Message[] = []
id: string
maxDepth: number
model: string
schema: ZodType<any, ZodTypeDef, any>
verbose: boolean

Accessors

Methods

  • Parameters

    • content: string

    Returns Promise<{
        data?: K;
        message: string;
    }>

  • Parameters

    • __namedParameters: {
          content: string;
          id?: string;
          role: Role;
      }
      • content: string
      • Optional id?: string
      • role: Role

    Returns void

  • Parameters

    • __namedParameters: {
          content: string;
          id?: string;
          role: Role;
      }
      • content: string
      • Optional id?: string
      • role: Role

    Returns void

Generated using TypeDoc

\ No newline at end of file +

Constructors

Properties

action: ((content) => Promise<{
    data?: K;
    message: string;
}>)

Type declaration

    • (content): Promise<{
          data?: K;
          message: string;
      }>
    • Parameters

      • content: any

      Returns Promise<{
          data?: K;
          message: string;
      }>

client: OpenAI
context: string
contextId: string
history: Message[] = []
id: string
maxDepth: number
model: string
schema: ZodType<any, ZodTypeDef, any>
verbose: boolean

Accessors

Methods

  • Parameters

    • content: string

    Returns Promise<{
        data?: K;
        message: string;
    }>

  • Parameters

    • __namedParameters: {
          content: string;
          id?: string;
          role: Role;
      }
      • content: string
      • Optional id?: string
      • role: Role

    Returns void

  • Parameters

    • __namedParameters: {
          content: string;
          id?: string;
          role: Role;
      }
      • content: string
      • Optional id?: string
      • role: Role

    Returns void

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/classes/StandardAction.html b/docs/classes/StandardAction.html index 5cf9d1d..e21cc60 100644 --- a/docs/classes/StandardAction.html +++ b/docs/classes/StandardAction.html @@ -1,4 +1,4 @@ -StandardAction | gpt-programmer

Class StandardAction<K>

Type Parameters

  • K = void

Hierarchy (view full)

Constructors

constructor +StandardAction | gpt-programmer

Class StandardAction<K>

Type Parameters

  • K = void

Hierarchy (view full)

Constructors

Properties

Constructors

Properties

action: ((content) => Promise<{
    data?: K;
    message: string;
}>)

Type declaration

    • (content): Promise<{
          data?: K;
          message: string;
      }>
    • Parameters

      • content: any

      Returns Promise<{
          data?: K;
          message: string;
      }>

client: OpenAI
context: string
contextId: string
history: Message[] = []
id: string
maxDepth: number
model: string
schema: ZodType<any, ZodTypeDef, any>
verbose: boolean

Accessors

Methods

Generated using TypeDoc

\ No newline at end of file +

Constructors

Properties

action: ((content) => Promise<{
    data?: K;
    message: string;
}>)

Type declaration

    • (content): Promise<{
          data?: K;
          message: string;
      }>
    • Parameters

      • content: any

      Returns Promise<{
          data?: K;
          message: string;
      }>

client: OpenAI
context: string
contextId: string
history: Message[] = []
id: string
maxDepth: number
model: string
schema: ZodType<any, ZodTypeDef, any>
verbose: boolean

Accessors

Methods

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/enums/Actions.html b/docs/enums/Actions.html index bbcd79d..50b63ba 100644 --- a/docs/enums/Actions.html +++ b/docs/enums/Actions.html @@ -1,4 +1,4 @@ -Actions | gpt-programmer

Enumeration Actions

Enumeration Members

DeleteFile +Actions | gpt-programmer

Enumeration Actions

Enumeration Members

DeleteFile: "DeleteFile"
GetLinks: "GetLinks"
ListDirs: "ListDirs"
ReadFiles: "ReadFiles"
RunCommand: "RunCommand"
VisitLink: "VisitLink"
WriteFile: "WriteFile"
WriteTaskList: "WriteTaskList"

Generated using TypeDoc

\ No newline at end of file +

Enumeration Members

DeleteFile: "DeleteFile"
GetLinks: "GetLinks"
ListDirs: "ListDirs"
ReadFiles: "ReadFiles"
RunCommand: "RunCommand"
VisitLink: "VisitLink"
WriteFile: "WriteFile"
WriteTaskList: "WriteTaskList"

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/functions/DeleteFile.html b/docs/functions/DeleteFile.html index 8448be9..32960b7 100644 --- a/docs/functions/DeleteFile.html +++ b/docs/functions/DeleteFile.html @@ -1 +1 @@ -DeleteFile | gpt-programmer

Function DeleteFile

Generated using TypeDoc

\ No newline at end of file +DeleteFile | gpt-programmer

Function DeleteFile

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/functions/GetLinks.html b/docs/functions/GetLinks.html index eb7229b..ba07556 100644 --- a/docs/functions/GetLinks.html +++ b/docs/functions/GetLinks.html @@ -1 +1 @@ -GetLinks | gpt-programmer

Function GetLinks

Generated using TypeDoc

\ No newline at end of file +GetLinks | gpt-programmer

Function GetLinks

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/functions/ListDirs.html b/docs/functions/ListDirs.html index f80861d..d7b31a3 100644 --- a/docs/functions/ListDirs.html +++ b/docs/functions/ListDirs.html @@ -1 +1 @@ -ListDirs | gpt-programmer

Function ListDirs

Generated using TypeDoc

\ No newline at end of file +ListDirs | gpt-programmer

Function ListDirs

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/functions/ReadFiles.html b/docs/functions/ReadFiles.html index 045d764..9cd27ab 100644 --- a/docs/functions/ReadFiles.html +++ b/docs/functions/ReadFiles.html @@ -1 +1 @@ -ReadFiles | gpt-programmer

Function ReadFiles

Generated using TypeDoc

\ No newline at end of file +ReadFiles | gpt-programmer

Function ReadFiles

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/functions/RunCommand.html b/docs/functions/RunCommand.html index f40ae80..7b46bc1 100644 --- a/docs/functions/RunCommand.html +++ b/docs/functions/RunCommand.html @@ -1 +1 @@ -RunCommand | gpt-programmer

Function RunCommand

Generated using TypeDoc

\ No newline at end of file +RunCommand | gpt-programmer

Function RunCommand

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/functions/VisitLink.html b/docs/functions/VisitLink.html index 951044b..6ddc812 100644 --- a/docs/functions/VisitLink.html +++ b/docs/functions/VisitLink.html @@ -1 +1 @@ -VisitLink | gpt-programmer

Function VisitLink

Generated using TypeDoc

\ No newline at end of file +VisitLink | gpt-programmer

Function VisitLink

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/functions/WriteFile.html b/docs/functions/WriteFile.html index c32a2b8..33c0d60 100644 --- a/docs/functions/WriteFile.html +++ b/docs/functions/WriteFile.html @@ -1 +1 @@ -WriteFile | gpt-programmer

Function WriteFile

Generated using TypeDoc

\ No newline at end of file +WriteFile | gpt-programmer

Function WriteFile

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/functions/WriteTaskList.html b/docs/functions/WriteTaskList.html index f53f035..094f5bb 100644 --- a/docs/functions/WriteTaskList.html +++ b/docs/functions/WriteTaskList.html @@ -1 +1 @@ -WriteTaskList | gpt-programmer

Function WriteTaskList

Generated using TypeDoc

\ No newline at end of file +WriteTaskList | gpt-programmer

Function WriteTaskList

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/functions/formatWrap.html b/docs/functions/formatWrap.html index a9284bb..eaadb1f 100644 --- a/docs/functions/formatWrap.html +++ b/docs/functions/formatWrap.html @@ -1 +1 @@ -formatWrap | gpt-programmer

Function formatWrap

Generated using TypeDoc

\ No newline at end of file +formatWrap | gpt-programmer

Function formatWrap

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/BaseActionData.html b/docs/interfaces/BaseActionData.html index 34f66f5..14db93e 100644 --- a/docs/interfaces/BaseActionData.html +++ b/docs/interfaces/BaseActionData.html @@ -1,4 +1,4 @@ -BaseActionData | gpt-programmer

Interface BaseActionData<K>

interface BaseActionData<K> {
    action: ((content) => Promise<{
        data?: K;
        message: string;
    }>);
    client: OpenAI;
    context: string;
    examples: {
        content: string;
        role: Role;
    }[];
    maxDepth: number;
    model: string;
    schema: ZodType<any, ZodTypeDef, any>;
    type: string;
    verbose: boolean;
}

Type Parameters

  • K

Properties

action +BaseActionData | gpt-programmer

Interface BaseActionData<K>

interface BaseActionData<K> {
    action: ((content) => Promise<{
        data?: K;
        message: string;
    }>);
    client: OpenAI;
    context: string;
    examples: {
        content: string;
        role: Role;
    }[];
    maxDepth: number;
    model: string;
    schema: ZodType<any, ZodTypeDef, any>;
    type: string;
    verbose: boolean;
}

Type Parameters

  • K

Properties

Properties

action: ((content) => Promise<{
    data?: K;
    message: string;
}>)

Type declaration

    • (content): Promise<{
          data?: K;
          message: string;
      }>
    • Parameters

      • content: any

      Returns Promise<{
          data?: K;
          message: string;
      }>

client: OpenAI
context: string
examples: {
    content: string;
    role: Role;
}[]

Type declaration

  • content: string
  • role: Role
maxDepth: number
model: string
schema: ZodType<any, ZodTypeDef, any>
type: string
verbose: boolean

Generated using TypeDoc

\ No newline at end of file +

Properties

action: ((content) => Promise<{
    data?: K;
    message: string;
}>)

Type declaration

    • (content): Promise<{
          data?: K;
          message: string;
      }>
    • Parameters

      • content: any

      Returns Promise<{
          data?: K;
          message: string;
      }>

client: OpenAI
context: string
examples: {
    content: string;
    role: Role;
}[]

Type declaration

  • content: string
  • role: Role
maxDepth: number
model: string
schema: ZodType<any, ZodTypeDef, any>
type: string
verbose: boolean

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/CommandOutput.html b/docs/interfaces/CommandOutput.html index 25d1c3a..b52d680 100644 --- a/docs/interfaces/CommandOutput.html +++ b/docs/interfaces/CommandOutput.html @@ -1,4 +1,4 @@ -CommandOutput | gpt-programmer

Interface CommandOutput

interface CommandOutput {
    error: string;
    stderr: string;
    stdout: string;
}

Properties

error +CommandOutput | gpt-programmer

Interface CommandOutput

interface CommandOutput {
    error: string;
    stderr: string;
    stdout: string;
}

Properties

Properties

error: string
stderr: string
stdout: string

Generated using TypeDoc

\ No newline at end of file +

Properties

error: string
stderr: string
stdout: string

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/Dir.html b/docs/interfaces/Dir.html index a0a9530..d897ae3 100644 --- a/docs/interfaces/Dir.html +++ b/docs/interfaces/Dir.html @@ -1,4 +1,4 @@ -Dir | gpt-programmer

Interface Dir

interface Dir {
    files: string[];
    originalPath: string;
    path: string;
}

Properties

files +Dir | gpt-programmer

Interface Dir

interface Dir {
    files: string[];
    originalPath: string;
    path: string;
}

Properties

Properties

files: string[]
originalPath: string
path: string

Generated using TypeDoc

\ No newline at end of file +

Properties

files: string[]
originalPath: string
path: string

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/Example.html b/docs/interfaces/Example.html index d3eada9..5bbf45c 100644 --- a/docs/interfaces/Example.html +++ b/docs/interfaces/Example.html @@ -1,3 +1,3 @@ -Example | gpt-programmer

Interface Example

interface Example {
    content: string;
    role: Role;
}

Properties

content +Example | gpt-programmer

Interface Example

interface Example {
    content: string;
    role: Role;
}

Properties

Properties

content: string
role: Role

Generated using TypeDoc

\ No newline at end of file +

Properties

content: string
role: Role

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/File.html b/docs/interfaces/File.html index 2160ac8..3155e4c 100644 --- a/docs/interfaces/File.html +++ b/docs/interfaces/File.html @@ -1,3 +1,3 @@ -File | gpt-programmer

Interface File

interface File {
    content: string;
    path: string;
}

Properties

content +File | gpt-programmer

Interface File

interface File {
    content: string;
    path: string;
}

Properties

Properties

content: string
path: string

Generated using TypeDoc

\ No newline at end of file +

Properties

content: string
path: string

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/Link.html b/docs/interfaces/Link.html index eb056d6..b116a4f 100644 --- a/docs/interfaces/Link.html +++ b/docs/interfaces/Link.html @@ -1,3 +1,3 @@ -Link | gpt-programmer

Interface Link

interface Link {
    title: string;
    url: string;
}

Properties

title +Link | gpt-programmer

Interface Link

interface Link {
    title: string;
    url: string;
}

Properties

Properties

title: string
url: string

Generated using TypeDoc

\ No newline at end of file +

Properties

title: string
url: string

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/Message.html b/docs/interfaces/Message.html index e0737a7..7cd8e35 100644 --- a/docs/interfaces/Message.html +++ b/docs/interfaces/Message.html @@ -1,4 +1,4 @@ -Message | gpt-programmer

Interface Message

interface Message {
    content: string;
    id: string;
    role: Role;
}

Properties

content +Message | gpt-programmer

Interface Message

interface Message {
    content: string;
    id: string;
    role: Role;
}

Properties

Properties

content: string
id: string
role: Role

Generated using TypeDoc

\ No newline at end of file +

Properties

content: string
id: string
role: Role

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/StandardActionData.html b/docs/interfaces/StandardActionData.html index d4aa7be..cb24802 100644 --- a/docs/interfaces/StandardActionData.html +++ b/docs/interfaces/StandardActionData.html @@ -1,6 +1,6 @@ -StandardActionData | gpt-programmer

Interface StandardActionData<K>

interface StandardActionData<K> {
    action: ((content) => Promise<{
        data?: K;
        message: string;
    }>);
    contextPath: string;
    examples: {
        content: string;
        role: Role;
    }[];
    schema: ZodType<any, ZodTypeDef, any>;
    type: string;
}

Type Parameters

  • K

Properties

action +StandardActionData | gpt-programmer

Interface StandardActionData<K>

interface StandardActionData<K> {
    action: ((content) => Promise<{
        data?: K;
        message: string;
    }>);
    contextPath: string;
    examples: {
        content: string;
        role: Role;
    }[];
    schema: ZodType<any, ZodTypeDef, any>;
    type: string;
}

Type Parameters

  • K

Properties

action: ((content) => Promise<{
    data?: K;
    message: string;
}>)

Type declaration

    • (content): Promise<{
          data?: K;
          message: string;
      }>
    • Parameters

      • content: any

      Returns Promise<{
          data?: K;
          message: string;
      }>

contextPath: string
examples: {
    content: string;
    role: Role;
}[]

Type declaration

  • content: string
  • role: Role
schema: ZodType<any, ZodTypeDef, any>
type: string

Generated using TypeDoc

\ No newline at end of file +

Properties

action: ((content) => Promise<{
    data?: K;
    message: string;
}>)

Type declaration

    • (content): Promise<{
          data?: K;
          message: string;
      }>
    • Parameters

      • content: any

      Returns Promise<{
          data?: K;
          message: string;
      }>

contextPath: string
examples: {
    content: string;
    role: Role;
}[]

Type declaration

  • content: string
  • role: Role
schema: ZodType<any, ZodTypeDef, any>
type: string

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/Website.html b/docs/interfaces/Website.html index 6537387..370b8cb 100644 --- a/docs/interfaces/Website.html +++ b/docs/interfaces/Website.html @@ -1,2 +1,2 @@ -Website | gpt-programmer

Interface Website

interface Website {
    content: string;
}

Properties

Properties

content: string

Generated using TypeDoc

\ No newline at end of file +Website | gpt-programmer

Interface Website

interface Website {
    content: string;
}

Properties

Properties

content: string

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/types/Role.html b/docs/types/Role.html index fdb9018..418ddd8 100644 --- a/docs/types/Role.html +++ b/docs/types/Role.html @@ -1 +1 @@ -Role | gpt-programmer

Type alias Role

Role: "system" | "user" | "assistant"

Generated using TypeDoc

\ No newline at end of file +Role | gpt-programmer

Type alias Role

Role: "system" | "user" | "assistant"

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/variables/AcceptedActions.html b/docs/variables/AcceptedActions.html index 1b6d212..6687af6 100644 --- a/docs/variables/AcceptedActions.html +++ b/docs/variables/AcceptedActions.html @@ -1 +1 @@ -AcceptedActions | gpt-programmer

Variable AcceptedActionsConst

AcceptedActions: Actions[] = ...

Generated using TypeDoc

\ No newline at end of file +AcceptedActions | gpt-programmer

Variable AcceptedActionsConst

AcceptedActions: Actions[] = ...

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/variables/Action.html b/docs/variables/Action.html index 8da2e10..c5e04e4 100644 --- a/docs/variables/Action.html +++ b/docs/variables/Action.html @@ -1 +1 @@ -Action | gpt-programmer

Variable ActionConst

Action: {
    Create: ZodObject<{
        action: ZodEnum<[DeleteFile, WriteFile, ListDirs, ReadFiles, WriteTaskList, RunCommand, GetLinks, VisitLink]>;
        message: ZodString;
    }, "strip", ZodTypeAny, {
        action: Actions;
        message: string;
    }, {
        action: Actions;
        message: string;
    }>;
    Schemas: {
        DeleteFile: ZodArray<ZodString, "many">;
        GetLinks: ZodObject<{
            query: ZodString;
        }, "strip", ZodTypeAny, {
            query: string;
        }, {
            query: string;
        }>;
        ListDirs: ZodArray<ZodString, "many">;
        ReadFiles: ZodArray<ZodString, "many">;
        RunCommand: ZodObject<{
            arguments: ZodArray<ZodString, "many">;
            command: ZodString;
        }, "strip", ZodTypeAny, {
            arguments: string[];
            command: string;
        }, {
            arguments: string[];
            command: string;
        }>;
        VisitLink: ZodObject<{
            link: ZodString;
        }, "strip", ZodTypeAny, {
            link: string;
        }, {
            link: string;
        }>;
        WriteFile: ZodArray<ZodObject<{
            content: ZodString;
            path: ZodString;
        }, "strip", ZodTypeAny, {
            content: string;
            path: string;
        }, {
            content: string;
            path: string;
        }>, "many">;
        WriteTaskList: ZodArray<ZodObject<{
            description: ZodString;
            task: ZodEnum<[DeleteFile, WriteFile, ListDirs, ReadFiles, WriteTaskList, RunCommand, GetLinks, VisitLink]>;
        }, "strip", ZodTypeAny, {
            description: string;
            task: Actions;
        }, {
            description: string;
            task: Actions;
        }>, "many">;
    };
} = ...

Type declaration

  • Create: ZodObject<{
        action: ZodEnum<[DeleteFile, WriteFile, ListDirs, ReadFiles, WriteTaskList, RunCommand, GetLinks, VisitLink]>;
        message: ZodString;
    }, "strip", ZodTypeAny, {
        action: Actions;
        message: string;
    }, {
        action: Actions;
        message: string;
    }>
  • Schemas: {
        DeleteFile: ZodArray<ZodString, "many">;
        GetLinks: ZodObject<{
            query: ZodString;
        }, "strip", ZodTypeAny, {
            query: string;
        }, {
            query: string;
        }>;
        ListDirs: ZodArray<ZodString, "many">;
        ReadFiles: ZodArray<ZodString, "many">;
        RunCommand: ZodObject<{
            arguments: ZodArray<ZodString, "many">;
            command: ZodString;
        }, "strip", ZodTypeAny, {
            arguments: string[];
            command: string;
        }, {
            arguments: string[];
            command: string;
        }>;
        VisitLink: ZodObject<{
            link: ZodString;
        }, "strip", ZodTypeAny, {
            link: string;
        }, {
            link: string;
        }>;
        WriteFile: ZodArray<ZodObject<{
            content: ZodString;
            path: ZodString;
        }, "strip", ZodTypeAny, {
            content: string;
            path: string;
        }, {
            content: string;
            path: string;
        }>, "many">;
        WriteTaskList: ZodArray<ZodObject<{
            description: ZodString;
            task: ZodEnum<[DeleteFile, WriteFile, ListDirs, ReadFiles, WriteTaskList, RunCommand, GetLinks, VisitLink]>;
        }, "strip", ZodTypeAny, {
            description: string;
            task: Actions;
        }, {
            description: string;
            task: Actions;
        }>, "many">;
    }
    • DeleteFile: ZodArray<ZodString, "many">
    • GetLinks: ZodObject<{
          query: ZodString;
      }, "strip", ZodTypeAny, {
          query: string;
      }, {
          query: string;
      }>
    • ListDirs: ZodArray<ZodString, "many">
    • ReadFiles: ZodArray<ZodString, "many">
    • RunCommand: ZodObject<{
          arguments: ZodArray<ZodString, "many">;
          command: ZodString;
      }, "strip", ZodTypeAny, {
          arguments: string[];
          command: string;
      }, {
          arguments: string[];
          command: string;
      }>
    • VisitLink: ZodObject<{
          link: ZodString;
      }, "strip", ZodTypeAny, {
          link: string;
      }, {
          link: string;
      }>
    • WriteFile: ZodArray<ZodObject<{
          content: ZodString;
          path: ZodString;
      }, "strip", ZodTypeAny, {
          content: string;
          path: string;
      }, {
          content: string;
          path: string;
      }>, "many">
    • WriteTaskList: ZodArray<ZodObject<{
          description: ZodString;
          task: ZodEnum<[DeleteFile, WriteFile, ListDirs, ReadFiles, WriteTaskList, RunCommand, GetLinks, VisitLink]>;
      }, "strip", ZodTypeAny, {
          description: string;
          task: Actions;
      }, {
          description: string;
          task: Actions;
      }>, "many">

Generated using TypeDoc

\ No newline at end of file +Action | gpt-programmer

Variable ActionConst

Action: {
    Create: ZodObject<{
        action: ZodEnum<[DeleteFile, WriteFile, ListDirs, ReadFiles, WriteTaskList, RunCommand, GetLinks, VisitLink]>;
        message: ZodString;
    }, "strip", ZodTypeAny, {
        action: Actions;
        message: string;
    }, {
        action: Actions;
        message: string;
    }>;
    Schemas: {
        DeleteFile: ZodArray<ZodString, "many">;
        GetLinks: ZodObject<{
            query: ZodString;
        }, "strip", ZodTypeAny, {
            query: string;
        }, {
            query: string;
        }>;
        ListDirs: ZodArray<ZodString, "many">;
        ReadFiles: ZodArray<ZodString, "many">;
        RunCommand: ZodObject<{
            arguments: ZodArray<ZodString, "many">;
            command: ZodString;
        }, "strip", ZodTypeAny, {
            arguments: string[];
            command: string;
        }, {
            arguments: string[];
            command: string;
        }>;
        VisitLink: ZodObject<{
            link: ZodString;
        }, "strip", ZodTypeAny, {
            link: string;
        }, {
            link: string;
        }>;
        WriteFile: ZodArray<ZodObject<{
            content: ZodString;
            path: ZodString;
        }, "strip", ZodTypeAny, {
            content: string;
            path: string;
        }, {
            content: string;
            path: string;
        }>, "many">;
        WriteTaskList: ZodArray<ZodObject<{
            description: ZodString;
            task: ZodEnum<[DeleteFile, WriteFile, ListDirs, ReadFiles, WriteTaskList, RunCommand, GetLinks, VisitLink]>;
        }, "strip", ZodTypeAny, {
            description: string;
            task: Actions;
        }, {
            description: string;
            task: Actions;
        }>, "many">;
    };
} = ...

Type declaration

  • Create: ZodObject<{
        action: ZodEnum<[DeleteFile, WriteFile, ListDirs, ReadFiles, WriteTaskList, RunCommand, GetLinks, VisitLink]>;
        message: ZodString;
    }, "strip", ZodTypeAny, {
        action: Actions;
        message: string;
    }, {
        action: Actions;
        message: string;
    }>
  • Schemas: {
        DeleteFile: ZodArray<ZodString, "many">;
        GetLinks: ZodObject<{
            query: ZodString;
        }, "strip", ZodTypeAny, {
            query: string;
        }, {
            query: string;
        }>;
        ListDirs: ZodArray<ZodString, "many">;
        ReadFiles: ZodArray<ZodString, "many">;
        RunCommand: ZodObject<{
            arguments: ZodArray<ZodString, "many">;
            command: ZodString;
        }, "strip", ZodTypeAny, {
            arguments: string[];
            command: string;
        }, {
            arguments: string[];
            command: string;
        }>;
        VisitLink: ZodObject<{
            link: ZodString;
        }, "strip", ZodTypeAny, {
            link: string;
        }, {
            link: string;
        }>;
        WriteFile: ZodArray<ZodObject<{
            content: ZodString;
            path: ZodString;
        }, "strip", ZodTypeAny, {
            content: string;
            path: string;
        }, {
            content: string;
            path: string;
        }>, "many">;
        WriteTaskList: ZodArray<ZodObject<{
            description: ZodString;
            task: ZodEnum<[DeleteFile, WriteFile, ListDirs, ReadFiles, WriteTaskList, RunCommand, GetLinks, VisitLink]>;
        }, "strip", ZodTypeAny, {
            description: string;
            task: Actions;
        }, {
            description: string;
            task: Actions;
        }>, "many">;
    }
    • DeleteFile: ZodArray<ZodString, "many">
    • GetLinks: ZodObject<{
          query: ZodString;
      }, "strip", ZodTypeAny, {
          query: string;
      }, {
          query: string;
      }>
    • ListDirs: ZodArray<ZodString, "many">
    • ReadFiles: ZodArray<ZodString, "many">
    • RunCommand: ZodObject<{
          arguments: ZodArray<ZodString, "many">;
          command: ZodString;
      }, "strip", ZodTypeAny, {
          arguments: string[];
          command: string;
      }, {
          arguments: string[];
          command: string;
      }>
    • VisitLink: ZodObject<{
          link: ZodString;
      }, "strip", ZodTypeAny, {
          link: string;
      }, {
          link: string;
      }>
    • WriteFile: ZodArray<ZodObject<{
          content: ZodString;
          path: ZodString;
      }, "strip", ZodTypeAny, {
          content: string;
          path: string;
      }, {
          content: string;
          path: string;
      }>, "many">
    • WriteTaskList: ZodArray<ZodObject<{
          description: ZodString;
          task: ZodEnum<[DeleteFile, WriteFile, ListDirs, ReadFiles, WriteTaskList, RunCommand, GetLinks, VisitLink]>;
      }, "strip", ZodTypeAny, {
          description: string;
          task: Actions;
      }, {
          description: string;
          task: Actions;
      }>, "many">

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/variables/api-1.html b/docs/variables/api-1.html index b270859..fd3982e 100644 --- a/docs/variables/api-1.html +++ b/docs/variables/api-1.html @@ -1 +1 @@ -api | gpt-programmer

Variable apiConst

api: Api = ...

Generated using TypeDoc

\ No newline at end of file +api | gpt-programmer

Variable apiConst

api: Api = ...

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/variables/config.html b/docs/variables/config.html index 368869b..b621a34 100644 --- a/docs/variables/config.html +++ b/docs/variables/config.html @@ -1 +1 @@ -config | gpt-programmer

Variable configConst

config: {
    client: OpenAI;
    hostname: string;
    maxDepth: number;
    maxTokensContextSummarizer: number;
    model: string;
    port: number;
    verbose: boolean;
    get host(): string;
} = ...

Type declaration

  • client: OpenAI
  • hostname: string
  • maxDepth: number
  • maxTokensContextSummarizer: number
  • model: string
  • port: number
  • verbose: boolean
  • get host(): string

Generated using TypeDoc

\ No newline at end of file +config | gpt-programmer

Variable configConst

config: {
    client: OpenAI;
    hostname: string;
    maxDepth: number;
    maxTokensContextSummarizer: number;
    model: string;
    port: number;
    verbose: boolean;
    get host(): string;
} = ...

Type declaration

  • client: OpenAI
  • hostname: string
  • maxDepth: number
  • maxTokensContextSummarizer: number
  • model: string
  • port: number
  • verbose: boolean
  • get host(): string

Generated using TypeDoc

\ No newline at end of file diff --git a/yarn.lock b/yarn.lock index 3c23ec3..560222d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -179,7 +179,7 @@ "@types/mime" "*" "@types/node" "*" -"@webassemblyjs/ast@1.12.1", "@webassemblyjs/ast@^1.12.1": +"@webassemblyjs/ast@^1.12.1", "@webassemblyjs/ast@1.12.1": version "1.12.1" resolved "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.12.1.tgz" integrity sha512-EKfMUOPRRUTy5UII4qJDGPpqfwjOmZ5jeGFwid9mnoqIFK+e0vqoi1qH56JpmZSzEL53jKnNzScdmftJyG5xWg== @@ -280,7 +280,7 @@ "@webassemblyjs/wasm-gen" "1.12.1" "@webassemblyjs/wasm-parser" "1.12.1" -"@webassemblyjs/wasm-parser@1.12.1", "@webassemblyjs/wasm-parser@^1.12.1": +"@webassemblyjs/wasm-parser@^1.12.1", "@webassemblyjs/wasm-parser@1.12.1": version "1.12.1" resolved "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.12.1.tgz" integrity sha512-xikIi7c2FHXysxXe3COrVUPSheuBtpcfhbpFj4gmu7KRLYOzANztwUU0IbsqvMqzuNK2+glRGWCEqZo1WCLyAQ== @@ -335,7 +335,7 @@ acorn-import-assertions@^1.9.0: resolved "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz" integrity sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA== -acorn@^8.7.1, acorn@^8.8.2: +acorn@^8, acorn@^8.7.1, acorn@^8.8.2: version "8.11.3" resolved "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz" integrity sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg== @@ -352,7 +352,7 @@ ajv-keywords@^3.5.2: resolved "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz" integrity sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ== -ajv@^6.12.5: +ajv@^6.12.5, ajv@^6.9.1: version "6.12.6" resolved "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz" integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== @@ -431,7 +431,7 @@ binary-extensions@^2.0.0: resolved "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz" integrity sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw== -body-parser@1.20.2, body-parser@^1.20.2: +body-parser@^1.20.2, body-parser@1.20.2: version "1.20.2" resolved "https://registry.npmjs.org/body-parser/-/body-parser-1.20.2.tgz" integrity sha512-ml9pReCu3M61kGlqoTm2umSXTlRTuGTx0bfYj+uIUKKYycG5NtSbeetV3faSU6R7ajOPw0g/J1PvK4qNy7s5bA== @@ -476,7 +476,7 @@ braces@^3.0.2, braces@~3.0.2: dependencies: fill-range "^7.0.1" -browserslist@^4.21.10: +browserslist@^4.21.10, "browserslist@>= 4.21.0": version "4.23.0" resolved "https://registry.npmjs.org/browserslist/-/browserslist-4.23.0.tgz" integrity sha512-QW8HiM1shhT2GuzkvklfjcKDiWFXHOeFCIA/huJPwHsslwcydgk7X+z2zXpEijP98UCY7HbubZt5J2Zgvf0CaQ== @@ -678,13 +678,6 @@ css-what@^6.1.0: resolved "https://registry.npmjs.org/css-what/-/css-what-6.1.0.tgz" integrity sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw== -debug@2.6.9: - version "2.6.9" - resolved "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz" - integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== - dependencies: - ms "2.0.0" - debug@^4: version "4.3.4" resolved "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz" @@ -692,6 +685,13 @@ debug@^4: dependencies: ms "2.1.2" +debug@2.6.9: + version "2.6.9" + resolved "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz" + integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== + dependencies: + ms "2.0.0" + deepmerge-ts@^5.1.0: version "5.1.0" resolved "https://registry.npmjs.org/deepmerge-ts/-/deepmerge-ts-5.1.0.tgz" @@ -986,11 +986,6 @@ fs.realpath@^1.0.0: resolved "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz" integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== -fsevents@~2.3.2: - version "2.3.3" - resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.3.tgz#cac6407785d03675a2a5e1a5305c697b347d90d6" - integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw== - function-bind@^1.1.2: version "1.1.2" resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz" @@ -1157,7 +1152,7 @@ inflight@^1.0.4: once "^1.3.0" wrappy "1" -inherits@2, inherits@2.0.4, inherits@^2.0.1, inherits@~2.0.1, inherits@~2.0.3: +inherits@^2.0.1, inherits@~2.0.1, inherits@~2.0.3, inherits@2, inherits@2.0.4: version "2.0.4" resolved "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz" integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== @@ -1201,16 +1196,16 @@ is-number@^7.0.0: resolved "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz" integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== -isarray@0.0.1: - version "0.0.1" - resolved "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz" - integrity sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ== - isarray@~1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz" integrity sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ== +isarray@0.0.1: + version "0.0.1" + resolved "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz" + integrity sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ== + isexe@^2.0.0: version "2.0.0" resolved "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz" @@ -1337,7 +1332,14 @@ minimatch@^3.0.3, minimatch@^3.1.1, minimatch@^3.1.2: dependencies: brace-expansion "^1.1.7" -minimatch@^9.0.1, minimatch@^9.0.3: +minimatch@^9.0.1: + version "9.0.3" + resolved "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz" + integrity sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg== + dependencies: + brace-expansion "^2.0.1" + +minimatch@^9.0.3: version "9.0.3" resolved "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz" integrity sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg== @@ -1354,7 +1356,7 @@ mkdirp@^1.0.4: resolved "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz" integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw== -ms@2.0.0, ms@^2.0.0: +ms@^2.0.0, ms@2.0.0: version "2.0.0" resolved "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz" integrity sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A== @@ -1625,7 +1627,7 @@ rimraf@^5.0.5: dependencies: glob "^10.3.7" -safe-buffer@5.2.1, safe-buffer@^5.1.0: +safe-buffer@^5.1.0, safe-buffer@5.2.1: version "5.2.1" resolved "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz" integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== @@ -1776,6 +1778,18 @@ statuses@2.0.1: resolved "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz" integrity sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ== +string_decoder@~0.10.x: + version "0.10.31" + resolved "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz" + integrity sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ== + +string_decoder@~1.1.1: + version "1.1.1" + resolved "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz" + integrity sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg== + dependencies: + safe-buffer "~5.1.0" + "string-width-cjs@npm:string-width@^4.2.0": version "4.2.3" resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz" @@ -1803,18 +1817,6 @@ string-width@^5.0.1, string-width@^5.1.2: emoji-regex "^9.2.2" strip-ansi "^7.0.1" -string_decoder@~0.10.x: - version "0.10.31" - resolved "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz" - integrity sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ== - -string_decoder@~1.1.1: - version "1.1.1" - resolved "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz" - integrity sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg== - dependencies: - safe-buffer "~5.1.0" - "strip-ansi-cjs@npm:strip-ansi@^6.0.1": version "6.0.1" resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz" @@ -1949,7 +1951,7 @@ typedoc@^0.25.12: minimatch "^9.0.3" shiki "^0.14.7" -typescript@^5.4.3: +typescript@*, typescript@^5.4.3, "typescript@4.6.x || 4.7.x || 4.8.x || 4.9.x || 5.0.x || 5.1.x || 5.2.x || 5.3.x || 5.4.x": version "5.4.3" resolved "https://registry.npmjs.org/typescript/-/typescript-5.4.3.tgz" integrity sha512-KrPd3PKaCLr78MalgiwJnA25Nm8HAmdwN3mYUYZgG/wizIo9EainNVQI9/yDavtVFRN2h3k8uf3GLHuhDMgEHg== @@ -1964,7 +1966,7 @@ undici-types@~5.26.4: resolved "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz" integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA== -unpipe@1.0.0, unpipe@~1.0.0: +unpipe@~1.0.0, unpipe@1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz" integrity sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ== @@ -2022,16 +2024,16 @@ watchpack@^2.4.1: glob-to-regexp "^0.4.1" graceful-fs "^4.1.2" -web-streams-polyfill@4.0.0-beta.3: - version "4.0.0-beta.3" - resolved "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-4.0.0-beta.3.tgz" - integrity sha512-QW95TCTaHmsYfHDybGMwO5IJIM93I/6vTRk+daHTWFPhwh+C8Cg7j7XyKrwrj8Ib6vYXe0ocYNrmzY4xAAN6ug== - web-streams-polyfill@^3.2.1: version "3.3.3" resolved "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.3.3.tgz" integrity sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw== +web-streams-polyfill@4.0.0-beta.3: + version "4.0.0-beta.3" + resolved "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-4.0.0-beta.3.tgz" + integrity sha512-QW95TCTaHmsYfHDybGMwO5IJIM93I/6vTRk+daHTWFPhwh+C8Cg7j7XyKrwrj8Ib6vYXe0ocYNrmzY4xAAN6ug== + webidl-conversions@^3.0.0: version "3.0.1" resolved "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz" @@ -2042,7 +2044,7 @@ webpack-sources@^3.2.3: resolved "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz" integrity sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w== -webpack@^5.91.0: +webpack@^5.0.0, webpack@^5.1.0, webpack@^5.91.0: version "5.91.0" resolved "https://registry.npmjs.org/webpack/-/webpack-5.91.0.tgz" integrity sha512-rzVwlLeBWHJbmgTC/8TvAcu5vpJNII+MelQpylD4jNERPwpBJOE2lEcko1zJX3QJeLjTTAnQxn/OJ8bjDzVQaw==