mirror of
https://github.com/MoonshotAI/kimi-code.git
synced 2026-10-19 09:13:24 +00:00
Some checks are pending
CI / build (push) Waiting to run
CI / test (1) (push) Waiting to run
CI / test (2) (push) Waiting to run
CI / test (3) (push) Waiting to run
CI / test (4) (push) Waiting to run
CI / test (5) (push) Waiting to run
CI / test-pi-tui (push) Waiting to run
CI / test-vscode-legacy (push) Waiting to run
CI / test-windows (push) Waiting to run
CI / lint (push) Waiting to run
CI / typecheck (push) Waiting to run
Nix Build / Check flake.nix workspace sync (push) Waiting to run
Nix Build / nix build .#kimi-code (push) Blocked by required conditions
Release / Release (push) Waiting to run
Release / Deploy docs (push) Blocked by required conditions
Release / Native release artifact (push) Blocked by required conditions
Release / Publish native release assets (push) Blocked by required conditions
Publish VS Code extension / Publish VSIX to marketplaces (push) Waiting to run
* chore: remove unused kaos package and MCP kaos executor option * chore: update nix pnpmDeps hash after kaos removal * chore: harden resume coalesce key against legacy kaos arguments and condense changesets * chore: strip legacy kaos options before forwarding session RPCs * chore: drop ssh2 overrides left unused by kaos removal
33 lines
1 KiB
TypeScript
33 lines
1 KiB
TypeScript
import { fileURLToPath } from 'node:url';
|
|
|
|
import { defineConfig } from 'tsdown';
|
|
|
|
import { rawTextPlugin } from '../../build/raw-text-plugin.mjs';
|
|
|
|
export default defineConfig({
|
|
entry: ['./src/index.ts'],
|
|
format: ['esm'],
|
|
dts: false,
|
|
outDir: 'dist',
|
|
clean: true,
|
|
plugins: [rawTextPlugin()],
|
|
banner: {
|
|
js: [
|
|
"import { fileURLToPath as __cjsShimFileURLToPath } from 'node:url';",
|
|
"import { dirname as __cjsShimDirname } from 'node:path';",
|
|
'const __filename = __cjsShimFileURLToPath(import.meta.url);',
|
|
'const __dirname = __cjsShimDirname(__filename);',
|
|
].join('\n'),
|
|
},
|
|
alias: {
|
|
'@moonshot-ai/kimi-code-oauth/provider-credential': fileURLToPath(
|
|
new URL('../oauth/src/provider-credential.ts', import.meta.url),
|
|
),
|
|
'@moonshot-ai/kimi-code-oauth': fileURLToPath(new URL('../oauth/src/index.ts', import.meta.url)),
|
|
'@moonshot-ai/kosong': fileURLToPath(new URL('../kosong/src/index.ts', import.meta.url)),
|
|
},
|
|
deps: {
|
|
alwaysBundle: [/^@moonshot-ai\//],
|
|
neverBundle: [],
|
|
},
|
|
});
|