feat: dsh-geek2api 0.1.0, a Geek2API route for DeepSeek Harness
Derived from dsh-packycode-api 1.1.7 (MIT) and rebuilt for the Geek2API (sub2api) gateway: multi-endpoint failover, /v1/usage balances with wallet dedupe, per-key coverage from /v1/models, sub2api failure wording, a Claude runtime switch (HTTP or local CLI), and Claude/GPT web search backends. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
commit
ed5154c042
94 files changed
+28617
No files matched your search
@@ -0,0 +1,55 @@
|
||||
import { defineConfig } from 'tsdown'
|
||||
|
||||
const id = 'dsh-geek2api'
|
||||
const hostExternal = [
|
||||
'@deepseek-ai/cordis',
|
||||
'@deepseek-ai/dsh-credentials',
|
||||
'@deepseek-ai/dsh-llm',
|
||||
'@deepseek-ai/dsh-llm-pi-ai',
|
||||
'@deepseek-ai/dsh-settings',
|
||||
'@deepseek-ai/dsh-tools',
|
||||
'@deepseek-ai/schemastery',
|
||||
'@earendil-works/pi-ai',
|
||||
'@earendil-works/pi-ai/api/anthropic-messages.lazy',
|
||||
'@earendil-works/pi-ai/api/openai-completions.lazy',
|
||||
'@earendil-works/pi-ai/api/openai-responses.lazy',
|
||||
]
|
||||
const clientExternal = [
|
||||
'react',
|
||||
'react/jsx-runtime',
|
||||
'@deepseek-ai/cordis',
|
||||
]
|
||||
|
||||
export default defineConfig([
|
||||
{
|
||||
name: id,
|
||||
entry: { index: 'src/index.js' },
|
||||
outDir: 'lib',
|
||||
format: ['esm'],
|
||||
platform: 'node',
|
||||
target: 'es2024',
|
||||
fixedExtension: false,
|
||||
dts: false,
|
||||
clean: true,
|
||||
deps: { neverBundle: hostExternal },
|
||||
},
|
||||
{
|
||||
name: `${id}/client`,
|
||||
entry: { client: 'src/client.jsx' },
|
||||
outDir: 'lib',
|
||||
format: 'cjs',
|
||||
platform: 'browser',
|
||||
target: 'es2022',
|
||||
dts: false,
|
||||
sourcemap: true,
|
||||
clean: false,
|
||||
deps: { neverBundle: clientExternal },
|
||||
define: { 'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV ?? 'production') },
|
||||
outputOptions: {
|
||||
entryFileNames: 'client.js',
|
||||
banner: `window.__ModuleLoader__.load({ id: ${JSON.stringify(id)}, factory: (require) => {`,
|
||||
footer: 'return module.exports; } });',
|
||||
intro: 'var module = { exports: {} }; var exports = module.exports;',
|
||||
},
|
||||
},
|
||||
])
|
||||
Reference in new issue
Block a user