v1.2.2 - Fix network error on background, auto-retry streaming with reconnect

This commit is contained in:
admin
2026-05-19 15:50:45 +04:00
Unverified
parent 2e327317e4
commit 1026259a20
3831 changed files with 384316 additions and 39 deletions

21
node_modules/@nicepkg/gpt-runner/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2023-PRESENT Jinming Yang <https://github.com/2214962083>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

5
node_modules/@nicepkg/gpt-runner/README.md generated vendored Normal file
View File

@@ -0,0 +1,5 @@
# GPT-Runner
It contains `defineConfig` function and `UserConfig` type.
It's helpful to config `gptr.config.ts` file with type checking.

18
node_modules/@nicepkg/gpt-runner/dist/index.cjs generated vendored Normal file
View File

@@ -0,0 +1,18 @@
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
const common = require('@nicepkg/gpt-runner-shared/common');
const node = require('@nicepkg/gpt-runner-shared/node');
function defineConfig(config) {
return config;
}
exports.defineConfig = defineConfig;
for (const k in common) {
if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = common[k];
}
for (const k in node) {
if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = node[k];
}

13
node_modules/@nicepkg/gpt-runner/dist/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,13 @@
import { UserConfig as UserConfig$1, ChatModelType } from '@nicepkg/gpt-runner-shared/common';
export * from '@nicepkg/gpt-runner-shared/common';
export * from '@nicepkg/gpt-runner-shared/node';
type GetStaticValueFromChatModelType<T extends ChatModelType> = T extends ChatModelType ? `${T}` : never;
type UserConfig = {
[Key in keyof Omit<UserConfig$1, 'rootPath' | 'exts'>]: Key extends 'model' ? Omit<NonNullable<UserConfig$1[Key]>, 'type'> & {
type: GetStaticValueFromChatModelType<NonNullable<UserConfig$1[Key]>['type']>;
} : UserConfig$1[Key];
};
declare function defineConfig(config: UserConfig): UserConfig;
export { UserConfig, defineConfig };

8
node_modules/@nicepkg/gpt-runner/dist/index.mjs generated vendored Normal file
View File

@@ -0,0 +1,8 @@
export * from '@nicepkg/gpt-runner-shared/common';
export * from '@nicepkg/gpt-runner-shared/node';
function defineConfig(config) {
return config;
}
export { defineConfig };

56
node_modules/@nicepkg/gpt-runner/package.json generated vendored Normal file
View File

@@ -0,0 +1,56 @@
{
"name": "@nicepkg/gpt-runner",
"version": "1.2.9",
"description": "Provides the defineConfig function and UserConfig type to enable type-checked configuration of the gptr.config.ts file, forming a crucial part of the GPT-Runner package designed to enhance AI-driven development workflows.",
"author": "Jinming Yang <2214962083@qq.com>",
"license": "MIT",
"funding": "https://github.com/sponsors/2214962083",
"homepage": "https://github.com/nicepkg/gpt-runner#readme",
"repository": {
"type": "git",
"url": "https://github.com/nicepkg/gpt-runner"
},
"sponsor": {
"url": "https://github.com/sponsors/2214962083"
},
"bugs": {
"url": "https://github.com/nicepkg/gpt-runner/issues"
},
"keywords": [
"gpt-runner",
"langchain",
"chatgpt",
"prompt",
"ai",
"storybook",
"openai",
"huggingFace",
"anthropic"
],
"sideEffects": false,
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
}
},
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist/",
"LICENSE",
"*.md"
],
"engines": {
"node": ">=16.15.0"
},
"dependencies": {
"@nicepkg/gpt-runner-shared": "1.2.9"
},
"scripts": {
"build": "unbuild",
"stub": "unbuild --stub"
}
}