tianxincode 1.0.32 → 1.0.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,7 +10,7 @@ import { Router } from 'express';
10
10
  import * as fs from 'fs';
11
11
  import * as path from 'path';
12
12
  import * as os from 'os';
13
- import { projectService } from '@/services/project/project.service.js';
13
+ import { projectService } from '../services/project/project.service.js';
14
14
  function logError(msg, error) {
15
15
  console.error(`[filesystem.routes] ${msg}:`, error);
16
16
  }
@@ -9,7 +9,7 @@ import { sessionService } from '../../modules/session/index.js';
9
9
  import { codeChatService } from '../../services/codeChat/index.js';
10
10
  import { commandChatService } from '../../services/commandChat/index.js';
11
11
  import { isCommand } from '../../cli/commands.js';
12
- import { projectService } from '@/services/project/project.service.js';
12
+ import { projectService } from '../../services/project/project.service.js';
13
13
  export class CodeWebSocketHandler {
14
14
  constructor() {
15
15
  this.wsClients = new Set();
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Box, Text } from 'ink';
3
- const VERSION = '1.0.31';
3
+ const VERSION = '1.0.33';
4
4
  export const Header = React.memo(function Header() {
5
5
  return (React.createElement(Box, { flexDirection: "column", borderStyle: "round", borderColor: "cyan", paddingX: 2, paddingY: 1 },
6
6
  React.createElement(Text, { bold: true, cyan: true }, " "),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tianxincode",
3
- "version": "1.0.32",
3
+ "version": "1.0.33",
4
4
  "type": "module",
5
5
  "description": "AI Coding Assistant",
6
6
  "main": "dist/index.js",
@@ -9,7 +9,7 @@
9
9
  "txcode": "dist/index.js"
10
10
  },
11
11
  "scripts": {
12
- "build": "tsc && npm run copy-txt",
12
+ "build": "tsc && tsc-alias && npm run copy-txt",
13
13
  "copy-txt": "node -e \"const fs=require('fs');const path=require('path');const providerSrc='src/modules/tools/provider';const providerDst='dist/modules/tools/provider';fs.readdirSync(providerSrc).filter(f=>f.endsWith('.txt')).forEach(f=>{fs.mkdirSync(providerDst,{recursive:true});fs.copyFileSync(path.join(providerSrc,f),path.join(providerDst,f))});const skillSrc='src/modules/skill';const skillDst='dist/modules/skill';fs.mkdirSync(skillDst,{recursive:true});fs.copyFileSync(path.join(skillSrc,'skill.txt'),path.join(skillDst,'skill.txt'));const providerPromptSrc='src/modules/ai/provider/openai/prompt';const providerPromptDst='dist/modules/ai/provider/openai/prompt';fs.mkdirSync(providerPromptDst,{recursive:true});fs.copyFileSync(path.join(providerPromptSrc,'role.txt'),path.join(providerPromptDst,'role.txt'));const agents=['code','chat','task','mem','skill'];agents.forEach(agent=>{const src='src/modules/ai/agents/'+agent+'/prompts';const dst='dist/modules/ai/agents/'+agent+'/prompts';fs.mkdirSync(dst,{recursive:true});fs.copyFileSync(path.join(src,'role.txt'),path.join(dst,'role.txt'))});console.log('Copied .txt files to dist')\"",
14
14
  "dev": "tsx src/index.ts",
15
15
  "demo:ink-scroll": "tsx scripts/ink-scroll-demo.tsx",
@@ -50,6 +50,7 @@
50
50
  "yaml": "^2.8.3"
51
51
  },
52
52
  "devDependencies": {
53
+ "tsc-alias": "^1.8.10",
53
54
  "@types/cors": "^2.8.19",
54
55
  "@types/express": "^5.0.6",
55
56
  "@types/jest": "^30.0.0",