build(config): refactored build and TypeScript configuration with Bun loaders

- Removed WASM generation script; use Bun `wasm?raw` loader for imports.
- Added bunfig.toml with loaders for `.md`, `.py`, and `.wasm?raw` text imports.
- Added types/assets/index.d.ts for global TypeScript module declarations.
- Unified TypeScript configuration with tsgo-based checking across monorepo.
- Removed build and WASM steps from install and publish pipelines.
This commit is contained in:
can1357
2026-01-24 00:03:52 +01:00
parent 237b8f8c99
commit f66e5dba9b
355 changed files with 5039 additions and 4293 deletions
@@ -2,24 +2,24 @@ import { mkdir, rm } from "node:fs/promises";
import * as os from "node:os";
import * as path from "node:path";
import type { UsageLimit, UsageReport } from "@oh-my-pi/pi-ai";
import { getDebugLogPath } from "@oh-my-pi/pi-coding-agent/config";
import { loadCustomShare } from "@oh-my-pi/pi-coding-agent/export/custom-share";
import type { CompactOptions } from "@oh-my-pi/pi-coding-agent/extensibility/extensions/types";
import { getGatewayStatus } from "@oh-my-pi/pi-coding-agent/ipy/gateway-coordinator";
import { ArminComponent } from "@oh-my-pi/pi-coding-agent/modes/components/armin";
import { BashExecutionComponent } from "@oh-my-pi/pi-coding-agent/modes/components/bash-execution";
import { BorderedLoader } from "@oh-my-pi/pi-coding-agent/modes/components/bordered-loader";
import { DynamicBorder } from "@oh-my-pi/pi-coding-agent/modes/components/dynamic-border";
import { PythonExecutionComponent } from "@oh-my-pi/pi-coding-agent/modes/components/python-execution";
import { getMarkdownTheme, getSymbolTheme, theme } from "@oh-my-pi/pi-coding-agent/modes/theme/theme";
import type { InteractiveModeContext } from "@oh-my-pi/pi-coding-agent/modes/types";
import { createCompactionSummaryMessage } from "@oh-my-pi/pi-coding-agent/session/messages";
import { outputMeta } from "@oh-my-pi/pi-coding-agent/tools/output-meta";
import { getChangelogPath, parseChangelog } from "@oh-my-pi/pi-coding-agent/utils/changelog";
import { copyToClipboard } from "@oh-my-pi/pi-coding-agent/utils/clipboard";
import { Loader, Markdown, Spacer, Text, visibleWidth } from "@oh-my-pi/pi-tui";
import { $ } from "bun";
import { nanoid } from "nanoid";
import { getDebugLogPath } from "../../config";
import { loadCustomShare } from "../../export/custom-share";
import type { CompactOptions } from "../../extensibility/extensions/types";
import { getGatewayStatus } from "../../ipy/gateway-coordinator";
import { ArminComponent } from "../../modes/components/armin";
import { BashExecutionComponent } from "../../modes/components/bash-execution";
import { BorderedLoader } from "../../modes/components/bordered-loader";
import { DynamicBorder } from "../../modes/components/dynamic-border";
import { PythonExecutionComponent } from "../../modes/components/python-execution";
import { getMarkdownTheme, getSymbolTheme, theme } from "../../modes/theme/theme";
import type { InteractiveModeContext } from "../../modes/types";
import { createCompactionSummaryMessage } from "../../session/messages";
import { outputMeta } from "../../tools/output-meta";
import { getChangelogPath, parseChangelog } from "../../utils/changelog";
import { copyToClipboard } from "../../utils/clipboard";
export class CommandController {
constructor(private readonly ctx: InteractiveModeContext) {}